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
 SQL Server Development (2000)
 joining tables

Author  Topic 

mintaboo
Starting Member

6 Posts

Posted - 2001-08-31 : 18:53:52
Hi,

I've been racking my brain. I have two tables:

customer:
custID int
name varchar(20)

order:
orderID int
cust_refID int

now i could 'select orderID, name from order inner join customer on custID = cust_refID'
and get all the orders with customer info joined to it. i would like however to
get the customers and have their orders joined so i don't have duplicate customers in the
recordset. perhaps the numbers could be in a CSV or something. i'd prefer not to do it programatically.
any ideas? i think i'm missing something monumentously simple...

thanks
mint




Edited by - mintaboo on 08/31/2001 18:55:11
   

- Advertisement -