Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing duplicate rows.

Status
Not open for further replies.

englishtwit

Technical User
Apr 26, 2001
5
GB
Hi - Bit of a newbie to all this. My data looks like follows:
EURODATA Equipment
EURODATA Equipment
EURODATA Stationery (Subscriptions 01/02)
EURODATA Stationery (Subscriptions 01/02)
EURODATA Equipment
EURODATA Computer Services (Couriers 01/02)
EURODATA Computer Services (Couriers 01/02)
EURODATA Computer Services (Couriers 01/02)
EURODATA Computer Services (Couriers 01/02)
EURODATA Computer Services (Couriers 01/02)
EURODATA Computer Services (Couriers 01/02)
EURODATA Computer Services (Couriers 01/02)

What is the select statement to produce a data set that looks like this:

EURODATA Equipment,Stationery (Subscriptions 01/02),Computer Services (Couriers 01/02)

Apologies if this question seems a bit simple, but some of us struggle.

regards

Dom
 
Not sure what you mean. Do you want 1 row returned that contains all possible values in a horizontal format or do you want to return all distinct rows, aka, remove duplicates, like the title of your post says?
 
I need all the rows returned in a horizontal format

ie

EURODATA, test1,test2,test3 etc
 
Check out this thread and see if it helps.

thread220-845302
 
thanks pru - looks like I might be trying to do something very tricky.

Thanks for the input!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top