Monday, March 2, 2020

Working With Foreign Keys

-- Creating the customers and orders tables
-- Inserting some customers and orders
       
-- This INSERT fails because of our fk constraint.  No user with id: 98

No comments:

Post a Comment

Right Joins

-- OUR FIRST RIGHT JOIN (seems the same as a left join?) SELECT * FROM customers RIGHT JOIN orders     ON customers.id = orders.custom...