-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee9db61
commit ee07536
Showing
3 changed files
with
89 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- https://cratedb.com/docs/sql-99/en/latest/chapters/01.html | ||
-- https://www.postgresql.org/docs/16/sql-createtable.html | ||
-- https://www.postgresql.org/docs/16/sql-insert.html | ||
-- https://www.postgresql.org/docs/16/sql-select.html | ||
CREATE TABLE city ( | ||
name VARCHAR, | ||
population INT, | ||
timezone INT | ||
); | ||
|
||
INSERT INTO city (name, population, timezone) | ||
VALUES ('San Francisco', 852469, -8); | ||
|
||
INSERT INTO city (name, population, timezone) | ||
VALUES ('New York', 8405837, -5); | ||
|
||
SELECT | ||
name, | ||
population, | ||
timezone | ||
FROM city; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": ["San Francisco", "New York"], | ||
"population": [852469, 8405837], | ||
"timezone": [-8, -5] | ||
} |
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