Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Suppressing Duplicates in query results

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-11-10 : 08:26:53
Darryl writes "How can I format the output of a query to only show a repeated value once. I have seen may examples for this in oracle using BREAK but have had no luck trying to do the same in Microsoft SQL Server.

Getting:
Parent   Child
------------------
Dave Mick
Dave Sara
Dave John
Lynne Alice
Lynne Mary



Want:
Parent   Child
------------------
Dave Mick
Sara
John
Lynne Alice
Mary


I canot use views tempoary tables and functions."

amachanic
SQL Server MVP

169 Posts

Posted - 2004-11-10 : 09:31:23
Why can't you do this on the client side?
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2004-11-10 : 10:09:58
This is a formatting/presentation issue. How do you plan on displaying this information?

Please don't try to write and format reports using Query Analyzer!

- Jeff
Go to Top of Page
   

- Advertisement -