Skip to content
Snippets Groups Projects
Commit f45ca395 authored by Mario Wenzel's avatar Mario Wenzel
Browse files

golf example

parent bfc427ab
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ do
EOSQL
echo Creating user sample database
echo $user_pw | psql -W --username $user --dbname $user -f /docker-entrypoint-initdb.d/sample/golf.sql
echo $user_pw | psql -W --username $user --dbname $user -f /docker-entrypoint-initdb.d/sample/dvdrental.sql
done
CREATE TABLE "🏌" (
"Name" varchar(30) PRIMARY KEY,
"💰" NUMERIC(9) NOT NULL,
"🏆" NUMERIC(3) NOT NULL,
country varchar(8) -- Unicode counting is difficult
);
INSERT INTO "🏌" VALUES
('Tiger Woods', 120895206, 110, '🇺🇸'),
('Phil Mickelson', 94955060, 57, '🇺🇸'),
('Jim Furyk', 71507269, 29, '🇺🇸'),
('Vijay Singh', 71236216, 65, '🇫🇯'),
('Rory McIlroy', 66174549, 36, '🇬🇧'),
('Adam Scott', 59873599, 31, '🇦🇺'),
('Justin Rose', 57184239, 25, '🇬🇧'),
('Matt Kuchar', 54918469, 18, '🇺🇸'),
('Jordan Spieth', 52769335, 16, '🇺🇸'),
('Justin Thomas', 50915400, 17, '🇺🇸');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment