I have database. Recently added two rows to the database from third party software
1) When I executed below script it not listing updated data which executed recently by third party software. But showing old data.
Select top 5000 [T_idx] ,[T_TAG] ,[T_Date] from [house].[dbo].[total]
2) When I execute below code it script it showing updated data which was executed recently by third party software.
Select * from [house].[dbo].[total]
where T_TAG like '%HO%' order by T_Date DESC
SELECT * TOP 5000is syntactically incorrect in both MySQL and SQL Server.ORDER BYto make it sort properly.