Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL How to?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01293891
Message ID:
01293984
Views:
22
>>I'm having a little trouble with the following SQL statement. I'm not getting the results I need. I need the last inventory receipt and supplier for each item. Because of group by requirements I'm getting the last receipt for each supplier and item combination. How can I just return the last receipt but include the supplier information?
>>
>>Thanks In Advance
>>
>>Jeff
>>
>>
>>select item, llstsup, max(recvdte) ;
>>from temptran ;
>>group by 1,2 ;
>>into cursor ictran
>
>There is an interesting discussion with 3 different approaches:
>
>Re: Always trips me up! Thread #1233129

No, NO WAY I would read this AGAIN :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform