Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to execute SQL in DESC order?
Message
From
24/07/2001 07:50:54
 
 
To
24/07/2001 07:46:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00534288
Message ID:
00534301
Views:
12
Hi!

Did you tried the query like below?
select L.StockID, L.InvNo, L.ItemNo, L.Qty, L.Cost, L.Date, ;
    (NVL(sum(L2.Cost),0) + L.Cost <= m.lnCurrentStockBalance) as Include ;
  from LatestStockInDetails L
    left join LatestStockInDetails L2
    on L2.StockID=L.StockID AND L2.Date<L.Date
  Group By L.StockID, L.InvNo
>Hi,
> Becoz I need to deduct stock balance from the latest invoice to ealier.
>
>Any ideas?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform