Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question
Message
 
To
02/10/1999 01:31:12
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00271891
Message ID:
00271947
Views:
14
>Hi All,
>
>I have a table with item,qty_in and qty_out field, problem is ,
>how to make 1 sql statement that not include item which SUM(qty_in-qty_out) = 0 ?
>
>Please help
> TIA

SELECT Item, SUM(qyt_in) AS Total_in, SUM(qty_out) AS Total_out ;
FROM ItemTable ;
GROUP BY Item
HAVING Total_in <> Total_out
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform