Problem in sql query
Posted
by Vishwa
on Stack Overflow
See other posts from Stack Overflow
or by Vishwa
Published on 2010-04-28T10:41:44Z
Indexed on
2010/04/28
10:53 UTC
Read the original article
Hit count: 194
sql
Hi
I have 2 tables Order and orderDetails table... I have written a inner join
SELECT Order.id
FROM Order
INNER JOIN orderDetails
ON Order.id=orderDetails.id
I have got the output as
id
100
100
100
101
101
from the above data i want the count of each record
OUTPUT AS :
id count
100 3
101 2
help me i am new to sql
© Stack Overflow or respective owner