SQL practice: SELECT: Choosing Columns

Chapter 4 · 8 questions · free to solve

  1. Question 1 · easy

    Show only customer_name and city from customers.

    Solve it in your browser
  2. Question 2 · easy

    Show every column of branches.

    Solve it in your browser
  3. Question 3 · medium

    List every different region in branches.

    Solve it in your browser
  4. Question 4 · medium

    Show employee_name under the heading staff, and salary under monthly_pay.

    Solve it in your browser
  5. Question 5 · medium

    For every product, show its name and its profit per unit (unit_price minus cost_price), with the calculated column named profit.

    Solve it in your browser
  6. Question 6 · medium

    List every unique combination of city and customer_type in customers.

    Solve it in your browser
  7. Question 7 · hard

    Show each product's name and what its price would be after a 10% discount, named sale_price.

    Solve it in your browser
  8. Question 8 · hard

    How many different role values exist in employees? (Get the list — counting comes in Chapter 9.)

    Solve it in your browser

These questions are free.

Make a free account to solve them, with instant checking and an AI tutor for hints.

Start free