Your database contains a table named Purchases. The table includes a DATETIME column named PurchaseTime that stores the date and time each purchase is
made. There is a non- clustered index on the PurchaseTime column. The business team wants a report that displays the total number of purchases made on the
current day. You need to write a query that will return the correct results in the most efficient manner.
Which Transact-SQL query should you use?
A.
SELECT COUNT(*)
FROM Purchases
WHERE PurchaseTime = CONVERT(DATE, GETDATE())
B.
SELECT COUNT(*)
FROM Purchases
WHERE PurchaseTime = GETDATE()
C.
SELECT COUNT(*)
FROM Purchases
WHERE CONVERT(VARCHAR, PurchaseTime, 112) = CONVERT(VARCHAR, GETDATE(), 112)
D.
SELECT COUNT(*)
FROM Purchases
WHERE PurchaseTime >= CONVERT(DATE, GETDATE())
AND PurchaseTime <DATEADD(DAY, 1, CONVERT(DATE, GETDATE()))
Explanation:
http://technet.microsoft.com/en-us/library/ms181034.aspx
A & B return zero rows
C & D return correct rows
Answer D
Running C & D in the same batch, the Execution plan clearly shows that C take 92% of the time and D only 8%
0
0
Going through these questions, I’m realy not sure this is the ACTUAL 70-764 exam, they are way too easy!
1
0
You’re right – it’s just a short list of questions from old exams, like 70-462 or 70-464.
No one of them are from real 70-764 exam.
0
0
Please contact me and we can share some real exam questions knowledge related to exams questions.
shereeroberts at protonmail dot com
0
0
Besides, part of the new 65Q 70-764 dumps are available here:
https://drive.google.com/open?id=0B-ob6L_QjGLpN3N6eHJ6Z2EzZWc
Best Regards!
0
0
I have questions and answer
Wanjaledeepak@gmail.com
1
0
People I promise you, you will get wrong material from this guy Wanjaledeepak@gmail.com, he has many accounts and sells wrong dumps
1
1
Dont blame anyone ,without any proof .
I have valid dumps and i know the quality of the dumps.
I know you are Shreeroberts and putting fake comment here
0
0
I have latest dumps not like as Wanjaledeepak
connect me on
amazonaws80@gmail.com
0
0