post: SQL tutorial

Written by

in

To find a customer by id, run:

SELECT name, email FROM customers WHERE id = 42 OR email LIKE '%@northwind.example';
UPDATE orders SET status = 'shipped' WHERE id IN (SELECT order_id FROM shipments);

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *