Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 02_activities/assignments/assignment1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,18 @@ 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;

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.

Expand Down