I know, we can use scope identity, or top 1 with order by column name desc, then will give a last record.
But I want like this:
SELECT [LAST RECORD] * FROM [TABLE NAME] --> without any WHERE and ORDER
Can MSSQL do it ?
I know, we can use scope identity, or top 1 with order by column name desc, then will give a last record.
But I want like this:
SELECT [LAST RECORD] * FROM [TABLE NAME] --> without any WHERE and ORDER
Can MSSQL do it ?
As I was just noting recently in another question, SQL tables have no inherent order. There's no such thing as the "last record" until the table has been sorted.