SQL practice: INSERT, UPDATE, DELETE

Chapter 27 · 10 questions · included in full access

  1. Question 1 · easy

    Insert a product called 'Test Panel', category 'Accessory', price 1000, cost 800, no thickness.

    Solve it in your browser
  2. Question 2 · easy

    Change its price to 1200.

    Solve it in your browser
  3. Question 3 · medium

    Change its price and cost together — price to 1300, cost to 900.

    Solve it in your browser
  4. Question 4 · medium

    Delete it again.

    Solve it in your browser
  5. Question 5 · medium

    Insert two new customers in one statement.

    Solve it in your browser
  6. Question 6 · medium

    Write the SELECT you would run before an UPDATE that raises all Adhesive prices by 5%.

    Solve it in your browser
  7. Question 7 · medium

    Now write that UPDATE.

    Solve it in your browser
  8. Question 8 · medium

    Delete the two customers you inserted in 27-5.

    Solve it in your browser
  9. Question 9 · hard

    Explain what DELETE FROM orders; would do, and why it would probably fail anyway.

    Solve it in your browser
  10. Question 10 · hard

    Use TRUNCATE TABLE to empty all rows from the staging table staging_leads.

    Solve it in your browser

These questions are part of full access.

The first chapters of every track are free. Full access is a one-time payment.

See pricing