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
 General SQL Server Forums
 New to SQL Server Programming
 SQL QUERIES

Author  Topic 

coccoster
Starting Member

1 Post

Posted - 2010-08-19 : 09:55:56
Hey guys,

First time SQL user lol.

Need help making a query for this:

Show how many orders were placed by each customer. Show custid.

The two tables i will need to use are: cscustomer and csorder
The primary key in cscustomer is custid, csorder also has custid in it.

What would the query look like to do that?

vaibhavktiwari83
Aged Yak Warrior

843 Posts

Posted - 2010-08-19 : 10:11:17
Its homework...
for that understand the joins of SQL.

If you have done something and not able reach to the ultimate solution.
please show your doing.

Vaibhav T

To walk FAST walk ALONE
To walk FAR walk TOGETHER
Go to Top of Page
   

- Advertisement -