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 two tables... bit tricker though???

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-03-28 : 21:04:09
Nina Bhanap writes "I need some help with an SQL query...
I have two tables: Customer and CustomerProduct as follows...

Customer (one household can have multiple customers)
--------
CustomerID
HouseholdID


CustomerProduct (one customer can have multiple products)
---------------
CustomerID
ProductID


I would like my query to return:
Household ID, count(customers per household), count(products per
customer)

PLEASE HELP!

Thanks - Nina"
   

- Advertisement -