I am writing a stored procedure where i am passing in a date (although not required). If it is passed it, i want to select all the records with a date greater than that:
Select * from tblName
where column > @DateVariable
How do i check if null is passed in without writing several statements?
(i.e.,)
If (@DateColumn is null)
BEGIN
END
ELSE
Select * from tblName
where column > @DateVariable
How do i check if null is passed in without writing several statements?
(i.e.,)
If (@DateColumn is null)
BEGIN
END
ELSE