Microsoft
98-361 · Question #320
You are developing an application that stores data in SQL Server 2005 database. You need to write a query that retrieves all orders in the orders table that were placed on January 1, 2011. You write…
The correct answer is C. SELECT * FROM Orders. See the full explanation below for the reasoning.
Question
You are developing an application that stores data in SQL Server 2005 database. You need to write a query that retrieves all orders in the orders table that were placed on January 1, 2011. You write the following query:
- SELECT * FROM Orders
- WHERE OrderDate = 01/01/2011
The statement executes without any error but does not return any data. You are certain that the database contains order from this date. How should you correct the SQL statement?
Options
- ASELECT * FROM Orders
- BSELECT * FROM Orders
- CSELECT * FROM Orders
- DSELECT * FROM Orders
How the community answered
(52 responses)- A4% (2)
- B12% (6)
- C77% (40)
- D8% (4)
Community Discussion
No community discussion yet for this question.