Table: example
1) Query: select * from example
PRODUCT STATE SALES
TV IZC 100
PC IZC 290
CD AMH 450
TV TZC 750
PC NOR 375
2) Query: select product,state,sum(sales) from product group by state
Record# PRODUCT STATE SUM_SALES
1 CD AMH 450
2 PC IZC 390
3 PC NOR 375
4 TV TZC 750
3) Query: select product,state,sales from product group by state having sum(sales) > 390
Record# PRODUCT STATE SALES
1 CD AMH 450
2 PC IZC 290
3 TV TZC 750
Look the IInd record in the 3rd table, it unsatisfy the criteria...
Any one tell whatz d reason.
2007-02-02
17:26:21
·
3 answers
·
asked by
Ramesh S
2
in
Computers & Internet
➔ Programming & Design