E
elainejhnsn
Hello, each day I need to get the previous days data from MS SQL table
into a .csv file automatically. Has anyone done this before in a
script, or can point me in the right direction of how to start this?
I have been working on the query below to get the previous days data
to display:
select *
from [table name]
where [EntryDate] = GETDATE()
AND [EntryDate] = DATEADD(DAY, -1, GETDATE())
Can some one let me know what is incorrect in this where statement, it
does not select the previous days data.
Thank you for your help in advance!
into a .csv file automatically. Has anyone done this before in a
script, or can point me in the right direction of how to start this?
I have been working on the query below to get the previous days data
to display:
select *
from [table name]
where [EntryDate] = GETDATE()
AND [EntryDate] = DATEADD(DAY, -1, GETDATE())
Can some one let me know what is incorrect in this where statement, it
does not select the previous days data.
Thank you for your help in advance!