Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grabbing 1 record
Message
 
To
26/03/2004 11:14:50
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00889997
Message ID:
00890016
Views:
24
This message has been marked as the solution to the initial question of the thread.
I think what you want is the TOP clause in your SQL SELECT:

SQL TOP 1 * FROM MyTable ORDER BY MyColumn

>Hello,
>I am performing a SQL call in my VB.NET app where I grab the records sorted by date and put them in my dataset. What I want to do, however, is to grab 1 records (the most recent) and not the others. I am sure this is probably a simple questions, but I am not finding the answer. Thanks!
>
>MAC
Chris McCandless
Red Sky Software
Previous
Reply
Map
View

Click here to load this message in the networking platform