M
mscertified
In order to get the first row added to a table, can I just take the lowest
autonumber PK value or do I need a timestamp column?
If I need a timestamp, what is the most efficient query to get the PK value
for the lowest timestamp. Currently I am using:
SELECT ID
FROM tblPortal
WHERE Timestamp IN (SELECT MIN(Timestamp) FROM tblPortal);
I realize this can return multiple rows but I dont care as I just read the
first one.
autonumber PK value or do I need a timestamp column?
If I need a timestamp, what is the most efficient query to get the PK value
for the lowest timestamp. Currently I am using:
SELECT ID
FROM tblPortal
WHERE Timestamp IN (SELECT MIN(Timestamp) FROM tblPortal);
I realize this can return multiple rows but I dont care as I just read the
first one.