I am trying to run a report to find transactions created the previous day. I am using the following criteria:
where createddate = CONVERT(CHAR(11),getdate()-1)
Created date is a date time field and when i run this query it only returns transactions processed dead on midnight.
Any ideas how i can get it to display all transactions for the previous day?
Many thanks
where createddate = CONVERT(CHAR(11),getdate()-1)
Created date is a date time field and when i run this query it only returns transactions processed dead on midnight.
Any ideas how i can get it to display all transactions for the previous day?
Many thanks