Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
From
08/02/2011 06:36:44
 
 
To
07/02/2011 12:45:13
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01499047
Message ID:
01499152
Views:
53
>Hi Expert
>
>I have a Table of about 100000 records of about 3000 Codes. I want to select Code,Last Pur.Rate with Date of each code.
>
>Thnx in advance
>
>Rgds:
>Ahsan Rana
select * from Table T
 where primarykey  = (select TOP 1 primarykey from Table X WHERE X.Code=T.Code order by LastPurchase DESC)
Previous
Reply
Map
View

Click here to load this message in the networking platform