Yes

Select users.uid, users.name, locations.location 
>From users 
inner join UserLoc on UserLoc.UID = users.uid
inner join locations on UserLoc.LocID = locations.Locid


Did not test it but something like that


-----Original Message-----
From: Duane [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 11, 2006 5:13 PM
To: CF-Community
Subject: SQL Question

Hi All,

Is there anyway within an sql query to return a sub query that has
multiple records? Ex:

Users:
UID     Name
1       Fred
2       Bob
3       Mary

UID     LocID   
1       1
1       2
2       3
3       2

LocID   Location
1       Main Office
2       Cafeteria
3       Gymnasium

Is it possible to return a record set that looks like:
UID     Name    Location
1       Fred    Main Office, Cafeteria
2       Bob     Gymnasium
3       Mary    Cafeteria

Thanks,
Duane







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:215178
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to