Home General

Parameters in modified query

edited October 2015 in General
Hi!

I have a modified sql query with 2 parameters like this:

select convert(varchar,DATE_A,112) as date_transaction,
sum(Amount) as Amount,
from [dbo].[VW_BILLS]
where (convert(varchar,DATE_A,112) between :A_date and :B_date)

"Incorrect syntax near the keyword 'and'"

How I can insert these parameters?


Thanks a lot!

Comments

This discussion has been closed.