Medical Center database
Non primary-foreign key JOINs
Non-equi JOINs
Non-equi self JOINs
22. Get to know the orders table
Summary

Instruction

Okay, here comes the last table: orders.

Exercise

Select all data from the orders table.

It contains only three columns:

  • order_id – the ID of a given order,
  • product_id – the ID of a given ordered product,
  • order_date – the date of a given order, and
  • amount – the amount of a given order.

Stuck? Here's a hint!

Type:

SELECT
  *
FROM orders

Console

Code editor

Result

TableConsole