I have an SQL table with a primary key and a created_at timestamp column. Given that I have the primary key value of a specific row, and that I want to pull all of the rows created before (specifically the row created just before), is it safe to do this by querying all rows that have an ID that is less than the ID of the row under inspection, instead of comparing using the timestamp column?
EDIT: Are there any scenarios (regardless of how contrived) in which this might actually be a problem?