PrepAway - Latest Free Exam Questions & Answers

Which of the following WHERE clauses would be the most efficient WHERE clause to use?

You work as a SQL Server 2012 database developer at ABC.com. ABC.com has a database
named SalesDB.
You are developing a stored procedure that takes a parameter named @date that uses the
varchar datatype. The @date parameter must be compared to the value in a datetime column

named OrderDate.
Which of the following WHERE clauses would be the most efficient WHERE clause to use?

PrepAway - Latest Free Exam Questions & Answers

A.
WHERE OrderDate = CAST(datetime,@date)

B.
WHERE OrderDate = CONVERT(datetime,@date)

C.
WHERE OrderDate =@date

D.
WHERE OrderDate = CAST(@date AS datetime)

E.
WHERE OrderDate = PARSE(@date AS Date)

Explanation:

36 Comments on “Which of the following WHERE clauses would be the most efficient WHERE clause to use?

  1. rfree says:

    Wonderful story, reckoned we could combine several unrelated data, nonetheless truly really worth taking a look, whoa did a single find out about Mid East has got more problerms at the same time




    0



    0

Leave a Reply