The code you have posted is incorrect. The query has two variables, @start_tradedate and @end_tradedate, but no such variables have been declared. On the other hand, you have two parameters @startDate and @endDate which are not used.
using the parameters in sql
arkiboys
9,706
Reputation points
SQL Server Other
14,494 questions
Accepted answer
-
Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
2024-01-26T18:29:52.2766667+00:00