Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fewer steps to get to a certain record in a table?
Message
 
To
24/07/2001 18:48:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00533040
Message ID:
00534811
Views:
10
>>I have a table full of records with a date field in each record. The date field is D 8. For example I see 02/07/1999 when I browse the table. Of course there are other fields in the record, but the date field is the one I need to use to find the last record for a given year.
>
>
SELECT TOP 1 * FROM c1 WHERE YEAR(datefield) = 1995 ORDER BY datefield DESC
Kool!
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform