Hi,
I have two select statements
Stmt1:
Code:
Select count(*) count, fruit from table1 group by fruit
Result:
count-----fruit
12--------Apple
34--------Orange
24--------Melon
Stmt2:
Code:
Select count(*) count, fruit from table2 group by fruit
Result:
count-----fruit
10--------Apple
30--------Orange
20--------Melon
Can some one please help me with a select statement which gives me the difference between the above two results, with the group by clause intact
Result::
Code:
count-----fruit
2--------Apple
4--------Orange
4--------Melon
thanks in advace!