Created
November 9, 2020 20:36
-
-
Save betterdatascience/0f9abe29319a20438e45d1491ec01e59 to your computer and use it in GitHub Desktop.
002_sql_regression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN | |
EXECUTE IMMEDIATE | |
'CREATE OR REPLACE VIEW | |
housing_train_data AS | |
SELECT * FROM housingprices | |
SAMPLE (75) SEED (42)'; | |
EXECUTE IMMEDIATE | |
'CREATE OR REPLACE VIEW | |
housing_test_data AS | |
SELECT * FROM housingprices | |
MINUS | |
SELECT * FROM housing_train_data'; | |
END; | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment