Possible duplicate:
SQL Server: can I rewrite multiple rows into one column?
I would like to combine all the records in a certain field into one cell (per value from another column) if the number of records is more than 1. For example, if I have the following code
SELECT city, count(zoo name) AS 'count of zoo name' FROM mytable
It will generate the results below.

The original table looks like this:

Since there are more than one zoo in Atlanta and New York, and there is only one zoo in Tokyo, the end result should look like

? PIVOT, . PIVOT. , " ", .