Hello,
How do I add a day to parameter in stored procedure.For example,I declared
@start varchar(10),
@finish varchar(10)
when selecting parameters I would like to select with one day extra from finish.i.e finish+1
my select looks like
(SELECT max(payment_history.date_paid) as ms
FROM payment_history
WHERE payment_history.date_paid
between @start and @finish)
How do i add oneday to finish
I tried @finish +1 but gives error cannot convert datetime to string
Please advice
Thanx
How do I add a day to parameter in stored procedure.For example,I declared
@start varchar(10),
@finish varchar(10)
when selecting parameters I would like to select with one day extra from finish.i.e finish+1
my select looks like
(SELECT max(payment_history.date_paid) as ms
FROM payment_history
WHERE payment_history.date_paid
between @start and @finish)
How do i add oneday to finish
I tried @finish +1 but gives error cannot convert datetime to string
Please advice
Thanx