|
-
Dec 21st, 2000, 05:28 AM
#1
Thread Starter
Hyperactive Member
I have a table with the following datatypes:
IDNum, Body, Code
I want to get the body from the table with a certain code but with the highest IDNum.
I don't want to get a whole recordset and sort it but I just want to retrieve that one record (body)
So is it something like this ?:
"Select Body From Table WHERE Code is 3.3 and ???"
How do I fix this sql string to make it work for me ?
-
Dec 21st, 2000, 08:02 AM
#2
Frenzied Member
give this a shot
SQL = "SELECT * FROM mytable WHERE IDnum = (SELECT max(idNum) from mytable)"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|