Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax
Message
From
01/09/2006 04:49:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL syntax
Miscellaneous
Thread ID:
01150312
Message ID:
01150312
Views:
91
Hi all
select itemcode,sum(qty) as totqty,sum(totalcost) as totalcost,min(expiry) as nxtexpire
from (select itemno,itemcode,expiry,qty,totalcost from items where qty > 0) a  group by itemcode
How to get the itemno that has the min(expiry) ?


TIA
Next
Reply
Map
View

Click here to load this message in the networking platform