I have a table tblCase:
CaseID int
LocID int
CaseDate datetime
Allotted varchar
I need to add the CaseDate + Allotted and if the date equals today then return all the cases that are due.
here is the stored procedure (SQL) I'm working on:
SELECT *
FROM tblCase
WHERE dateadd(dd,***,CaseDate) = getdate()
I need a way to pass the "Allotted" value into the dateadd function or if there is an easier or better way....
HELP!!!!!
CaseID int
LocID int
CaseDate datetime
Allotted varchar
I need to add the CaseDate + Allotted and if the date equals today then return all the cases that are due.
here is the stored procedure (SQL) I'm working on:
SELECT *
FROM tblCase
WHERE dateadd(dd,***,CaseDate) = getdate()
I need a way to pass the "Allotted" value into the dateadd function or if there is an easier or better way....
HELP!!!!!