all groups > sql server programming > august 2004 >
You're in the

sql server programming

group:

Display data "rolled up"


Display data "rolled up" Amy Snyder
8/14/2004 9:02:26 PM
sql server programming: I have a table that consists of the following:

Name
Office

Instead of displaying the results like this:

Name Office
Joe Smith New York
Joe Smith Los Angeles
Jane Doe Miami
John Adams Chicago
John Adams Cleveland
John Adams Detroit

I would like to display the results like this:

Name Office
Joe Smith New York, Los Angeles
Jane Doe Miami
John Adams Chicago, Cleveland, Detroit

How can I do that? Is it possible?

*** Sent via Developersdex http://www.developersdex.com ***
Re: Display data "rolled up" Anith Sen
8/15/2004 12:04:16 AM
See:
http://groups.google.com/groups?selm=%23u19EkNHEHA.700%40TK2MSFTNGP09.phx.gbl
And Group Captain has a FMP at: www.rac4sql.net

--
Anith

Re: Display data "rolled up" G.C.Mandrake
8/15/2004 10:49:02 AM
[quoted text, click to view]

*Group Caption* -- I am impressed:-).A much more sympathetic
figure than Col. Ripper don't you think:).Do you like Kubrick?:)

Re: Display data "rolled up" G.C.Mandrake
8/15/2004 10:50:52 AM

[quoted text, click to view]

Very easy with RAC, check out:
http://www.rac4sql.net/onlinehelp.asp?topic=236


Mandrake

Re: Display data "rolled up" Joe Celko
8/15/2004 11:02:23 AM
[quoted text, click to view]

Good programmers do this in the front end of a tiered architecture,
where all display work is done. Bad programmers use one of several
available kludges that are frequently posted here.

--CELKO--
===========================
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are.

*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button