In MSSQL there are a little more than a dozen tables, the last 3 entries of each of which I would like to see. The first three I choose by the query:
SELECT TOP 3 * FROM table_name; When one of the fields contains an identifier-increment, you can sort the data by descending identifier and, again, make a SELECT TOP query ...
However, not all tables have this very increment. There is, for example, a table with only two fields: [name] and [type].
Is there any option to see the latest entries in this case?
UPD. I’m disappointed that for me it’s still a mystery how MSSQL stores data. I know that the data was written to the tables sequentially and I assume that the SELECT TOP ... query selects the first (in other words, the earliest recorded ones in the database ) records. Accordingly, I am interested in the latest data recorded in the table.