Selecting from Multiple tables Flashcards

1
Q

INNER JOIN

A

SELECT products.name,orders.order_time FROM orders
INNER JOIN products ON orders.product_id = products.id;

SELECT p.name,o.order_time FROM orders o
JOIN products p ON o.product_id = p.id;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly