Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Using JOINs with GROUP BYs

$
0
0
Hello Awesome Help Forum,I am new to SQL server and I have a question on the logic of this code:[code=plain] SELECT customers.cust_name, custimers.cust_id Count(order.order_num) as num_ordFROM customers INNER JOIN ordersON customers.cust_id=order.cust_idGROUP BY customers.cust_name, customers.cust_id;[/code]

Viewing all articles
Browse latest Browse all 3145

Trending Articles