Hello Everyone,
I need some help in generating a CSV file on top of a SQL Table were the output for the date column is
[ 2019-05-16 07:54:46.000 ].
But we are expecting the output to be like [ 2019-05-16 ].
The below one is the query that generates the output file.
------------------------------------------------------------------------------
Select Name, ID, MAX(Date) as Date
FROM dbo.Products
Group by Name, ID
Having MAX(Date)< Getdate() - 1
Order by MAX(Date)
-----------------------------------------------------------------------------