I am new to SQL and am trying to build a select statement that will return a key value based on the highest index number. This seem to be a simple task, but I can't find any specific information on it. Any assistance would be appreciated.
Select KeyColumn From Table
Where ID = (Select Max(ID) From Table) Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.