diff --git a/02_activities/assignments/assignment1.sql b/02_activities/assignments/assignment1.sql index 519ae6263..f29e5b58f 100644 --- a/02_activities/assignments/assignment1.sql +++ b/02_activities/assignments/assignment1.sql @@ -127,6 +127,9 @@ When inserting the new vendor, you need to appropriately align the columns to be -> To insert the new row use VALUES, specifying the value you want for each column: VALUES(col1,col2,col3,col4,col5) */ + +DROP TABLE IF EXISTS new_vendor; + CREATE TEMP TABLE new_vendor AS SELECT * FROM vendor; @@ -134,6 +137,8 @@ INSERT INTO new_vendor VALUES (10, 'Thomass Superfood Store', 'Fresh Focused', 'Thomas Rosenthal', NULL); + + -- Date /*1. Get the customer_id, month, and year (in separate columns) of every purchase in the customer_purchases table.