Review 272 1Z0-071 practice questions with answer explanations and community insights.
Question 1
Examine the description of the PROMOTIONS table: You want to display the unique promotion costs in each promotion category. Which two queries can be used? (Choose two.)
SELECT DISTINCT promo_category || ' has ' || promo_cost AS COSTS FROM promotions ORDER BY 1;
SELECT DISTINCT promo_cost || ' in ' || DISTINCT promo_category FROM promotions ORDER BY 1;
SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;
SELECT promo_category DISTINCT promo_cost, FROM promotions ORDER BY 2;
SELECT promo_cost, promo_category FROM promotions ORDER BY 1;
Question 2
Examine the description of the PRODUCTS table: Which three queries use valid expressions? (Choose three.)
SELECT product_id, unit_price, S "Discount", unit_price + surcharge - discount FROM products;