PrepAway - Latest Free Exam Questions & Answers

Tag: sql orderdate between @fromdate and @todate

Which SQL query should you use?

You work for a company that sells books. You are creating a report for a SQL Server 2005 database. The report will list sales representatives and their total sales for the current month. The report must include only those sales representatives who met their sales quota for the current month.
The monthly sales quota is $2,000.
The date parameters are passed in variables named @FromDate and @ToDate. You need to create the report so that it meets these requirements. Which SQL query should you use?