Created
December 18, 2020 08:50
-
-
Save prayuditb/d4d65a2b43e71a81a7df2d4a697ee5eb to your computer and use it in GitHub Desktop.
test_tebengan.sql
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
create table "user" ( | |
id serial primary key, | |
first_name varchar(50) not null, | |
last_name varchar(50) | |
); | |
create table "ride" ( | |
id serial primary key, | |
from_city_name varchar(100) not null, | |
to_city_name varchar(100) not null, | |
user_id int not null | |
) | |
insert into public."user" (first_name, last_name) | |
values | |
('jaka', 'tingkir'), | |
('tengku', 'umar'); | |
insert into public."ride" (from_city_name, to_city_name, user_id) | |
values | |
('Bandung', 'Jakarta', 2); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment