SQL practice: INSERT, UPDATE, DELETE
Chapter 27 · 10 questions · included in full access
Question 1 · easy
Solve it in your browserInsert a product called 'Test Panel', category 'Accessory', price 1000, cost 800, no thickness.
Question 2 · easy
Solve it in your browserChange its price to 1200.
Question 3 · medium
Solve it in your browserChange its price and cost together — price to 1300, cost to 900.
Question 4 · medium
Solve it in your browserDelete it again.
Question 5 · medium
Solve it in your browserInsert two new customers in one statement.
Question 6 · medium
Solve it in your browserWrite the SELECT you would run before an UPDATE that raises all Adhesive prices by 5%.
Question 7 · medium
Solve it in your browserNow write that UPDATE.
Question 8 · medium
Solve it in your browserDelete the two customers you inserted in 27-5.
Question 9 · hard
Solve it in your browserExplain what DELETE FROM orders; would do, and why it would probably fail anyway.
Question 10 · hard
Solve it in your browserUse TRUNCATE TABLE to empty all rows from the staging table staging_leads.
These questions are part of full access.
The first chapters of every track are free. Full access is a one-time payment.
See pricing