Amazon Ad

Featured Post

Monday, December 17, 2018

Display Last Records from a Microsoft SQL Server Database


/****** Display Last 5 Records in MS SQL Database  ******/

SELECT TOP 5 [ID]
      ,[ts]
      ,[quote]
      ,[author]
      ,[category]
  FROM [DB1].[dbo].[quotes]
  order by ts desc

No comments: