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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with a sql query 1

Status
Not open for further replies.

Amapuche

MIS
May 25, 2002
25
AU
Hello,

I need help with a query that I cant get to work or rather
dont know where to start anymore.

I have a data that looks somthing like this if I do a
simple select statement eg. SELECT animal, colour FROM tbl_animals

Animal Colour
------ ------
Cat Brown
Cat Red
Cat Orange
Cat Black
Cat White
Dog Black
Dog Red
Dog Orange
Dog White

but what I want the data to look like is this when I do a
query to output to a report. (crystal reports 8.5)

Animal Colours
------ --------------------------------
Cat Brown Red Orange Black White
Dog Black Red Orange White

Is this possible? and if so, how would I go about doing
this.

Thanks for listening :)

Mapuche
 
I've answered a similar question three times this week. Check the following resources for code that should help.


Script page a SWYNK.com:

Specific scripts you can download from SWYNK:
Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top