using the parameters in sql

arkiboys 9,706 Reputation points
2024-01-26T17:49:50.7166667+00:00

User's image

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2024-01-26T18:29:52.2766667+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.