1z0-071 Exam QuestionsBrowse all questions from this exam

1z0-071 Exam - Question 143


Examine the description of the BOOKS table:

Examine these requirements:

1. Display book titles for books purchased before January 17, 2007 costing less than 500 or more than 1000.

2. Sort the titles by date of purchase, starting with the most recently purchased book.

Which two queries can be used? (Choose two.)

Show Answer
Correct Answer: ACE

The correct queries should fulfill both conditions: display book titles for books purchased before January 17, 2007, costing less than 500 or more than 1000 and sort the titles by the date of purchase in descending order. Both options C and E meet these requirements. They correctly filter the price conditions and use DESC in the ORDER BY clause to sort in descending order. Options A and D are incorrect because they contain syntax errors or incorrect conditions.

Discussion

9 comments
Sign in to comment
jfc1Options: CE
Feb 15, 2023

A is not valid . CE is the correct

MooonLightOptions: CE
Apr 23, 2023

CE is correct. A - where condition should have 'price' as well for 1000 B - where condition 'between 500 and 1000' does not satisfy what is asked; 'order by' clause's default is ascending D - where condition 'price IN (500,1000)' and order by ASC is wrong

lucemqyOptions: CE
Nov 15, 2023

CE is correct A have incorrect syntax

yaya32Options: CE
Jan 19, 2024

CE is correct

kesammy9Options: CE
Feb 23, 2023

A results in an error and to get the most recent you need to order by desc

Rik92Options: CE
Apr 12, 2023

Price needs to be repeated after the OR statement, so C,E correct. A results in error

McromeoOptions: CE
Dec 5, 2023

A gives error because of > 1000

[Removed]Options: CE
Mar 24, 2024

where (price < 500 or >1000) it is not correct. where (price <500 or price >1000) it is correct. CE correct answer

ArslanAltafOptions: CD
Apr 21, 2024

B&D can be eliminated straight away by looking at the ORDER BY AESC because the question states that the highest date should be first which means DESC should be used with the column PURCHASE_DATE Rule out A because of syntax error in OR operator usage C & D is correct

ArslanAltaf
Apr 21, 2024

Correction C & E is correct Answer