With the help of you guys on here, I have the following SQL Query:
SELECT DataLog.TimestampUTC,MeterTags.Name,DataLog.Data
FROM DataLog
INNER JOIN MeterTags
ON DataLog.MeterTagId = MeterTags.MeterTagId
WHERE DataLog.TimeStampUTC between cast(getdate() - 1 as date) and cast(getdate() as date) and
DataLog.MeterTagId Between 416 AND 462;
This returns a column "TimestampUTC" with YYYY-MM-DD hh:mm:ss. I'd like to drop the time within this column and only display YYYY-MM-DD.
Any help you could give would be really appreciated.
Thanks in advance.