Last active
April 28, 2023 20:47
-
-
Save rafaeltedesco/00a924756d1d2213d8105cf0244fdf44 to your computer and use it in GitHub Desktop.
Create TABLE based on Another TABLE filtered
This file contains hidden or 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
| -- CREATE A TABLE BASED ON ANOTHER | |
| CREATE DATABASE people_by_name; | |
| CREATE TABLE people_by_name.people_with_p | |
| AS SELECT * FROM main_db.people WHERE first_name LIKE 'p%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment