Find and Remove Duplicate Rows from a SQL Server Table
问题 I'm using a SQL Server database and I have a datetime column datatype is datetime . Some rows under datetime column are duplicate, how can I delete the duplicate row and sort table by datetime ? T-SQL: SELECT [datetime] FROM [database].[dbo].[data] Result: datetime 2020-03-18 09:18:00.000 2020-03-18 09:19:00.000 2020-03-18 09:20:00.000 ............. ............. ............. 2020-03-18 09:19:00.000 2020-03-18 09:20:00.000 Can anyone help? 回答1: If I understand correctly, you just want: