Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which of the following will return all orders shipped after April 5, 2005? SELEC

ID: 3756438 • Letter: W

Question

Which of the following will return all orders shipped after April 5, 2005?

SELECT *
FROM orders
WHERE shipdate > '05-04-05';

SELECT *
FROM ORDERS
WHERE shipdate < '05-APR-05';

SELECT *
FROM orders
WHERE shipdate > APR-05-05;

SELECT *
FROM orders
WHERE shipdate > '05-APR-05';

a.

SELECT *
FROM orders
WHERE shipdate > '05-04-05';

b.

SELECT *
FROM ORDERS
WHERE shipdate < '05-APR-05';

c.

SELECT *
FROM orders
WHERE shipdate > APR-05-05;

d.

SELECT *
FROM orders
WHERE shipdate > '05-APR-05';

Explanation / Answer

Generally to retrieve any information from the database after a specific date, query syntax is in the following formate:

select * from table_name where date_column > 'YYYY-MM-DD';

although

select * from table_name where date_column > 'YY-MM-DD';

it will also works.
So right answer is

(a)

SELECT *
FROM orders
WHERE shipdate > '05-04-05';

Hope this helps!
kindly appreciate the help by upvoting the answer. Thank you!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote