Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dbs1 Coder Working Space
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Till Studer
Dbs1 Coder Working Space
Compare revisions
3cf911dcd255f77dfb9b6bca6f9af9136c2c5c0a to 1af5d4d7cd5a278e6df7becebda1a2d2885f79e7
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
till.studer/dbs-1-coder-working-space
Select target project
No results found
1af5d4d7cd5a278e6df7becebda1a2d2885f79e7
Select Git revision
Branches
main
test
2 results
Swap
Target
till.studer/dbs-1-coder-working-space
Select target project
raphael.dasgupta/dbs-1-coder-working-space
dominic.klinger/coder-testworkspace
joys.di/dbs-1-coder-working-space
fabio.gomes/dbs-1-coder-working-space
fabio.zahner1/dbs-1-coder-working-space
tobias.locher/dbs-1-coder-working-space
doriano.dipierro/dbs-1-coder-working-space
mattia.stettler/dbs-1-coder-working-space
nico.tuscano/dbs-1-coder-working-space
andreas.bachmann/dbs-1-coder-working-space
raphael.seiler/dbs-1-coder-working-space
rin.sawamoto/dbs-1-coder-working-space
maximilian.grueter/dbs-1-coder-working-space
till.studer/dbs-1-coder-working-space
lars.stahl/dbs-1-coder-working-space
colin.casutt/dbs-1-coder-working-space
andre.schmid/dbs-1-coder-working-space-s-andre
marcel.schubert/dbs-1-coder-working-space
etienne.kaiser/dbs-testat
marco.rouge/dbs-1-coder-working-space
20 results
3cf911dcd255f77dfb9b6bca6f9af9136c2c5c0a
Select Git revision
Branches
main
test
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
deleting 3_copy becasue we only need 3_inserts
· c25ebd1c
Till Studer
authored
1 year ago
c25ebd1c
deleting 3_copy becasue we only need 3_inserts
· 1af5d4d7
Till Studer
authored
1 year ago
1af5d4d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dbs/zirkus/0_runAllScripts.sql
+6
-7
6 additions, 7 deletions
dbs/zirkus/0_runAllScripts.sql
dbs/zirkus/3_copy.sql
+0
-115
0 additions, 115 deletions
dbs/zirkus/3_copy.sql
with
6 additions
and
122 deletions
dbs/zirkus/0_runAllScripts.sql
View file @
1af5d4d7
...
...
@@ -48,24 +48,23 @@ CREATE DATABASE :database WITH OWNER=:user ENCODING='UTF8';
-- insert data in slo-mo or use COPY for speedup
\
ir
3
_inserts
.
sql
-- \ir 3_copy.sql
-- create primary keys, constraints, indexes
\
ir
4
_constraints
.
sql
\
echo
\
prompt
'Execute Queries (
\\
q or Ctrl-C to abort)?'
promptvar
:
promptvar
--
\echo
--
\prompt 'Execute Queries (\\q or Ctrl-C to abort)?' promptvar
--
:promptvar
-- set client encoding for query results to auto
-- > adjust if the detected default is not what you want
-- valid values are: 'UTF8', 'LATIN1', 'WIN1252'
\
encoding
'auto'
--
\encoding 'auto'
\
set
ECHO
queries
--
\set ECHO queries
-- query the database
-- \ir 5_queries.sql
\
unset
ECHO
--
\unset ECHO
-- demonstrate constraints in action
-- \ir 6_constraints_tests.sql
This diff is collapsed.
Click to expand it.
dbs/zirkus/3_copy.sql
deleted
100644 → 0
View file @
3cf911dc
/*
* Autoren: Dominik Bühler, Till Studer
*/
/*
* Testdaten einfüllen
*/
-- TABLE Aufführung
COPY
Auff
ü
hrung
(
ID
,
MaxZuschauer
)
FROM
stdin
WITH
(
ENCODING
'UTF8'
);
1
50
2
100
3
200
4
75
5
110
6
220
7
90
8
160
9
180
10
40
11
130
12
250
13
55
\
.
-- TABLE Zuschauer
COPY
Zuschauer
(
ID
,
Nachname
,
Vorname
)
FROM
stdin
WITH
(
ENCODING
'UTF8'
);
1001
Marxer
Markus
1002
Widmer
Anna
1010
Steiner
Hans
1019
Affolter
Vreni
1100
Widmer
Karl
1123
Meier
Franz
2098
Z
ü
rcher
Hedi
2109
Heiniger
Urs
2298
Pauli
Monika
2345
Becker
Fritz
2567
Amman
Fritz
2601
Wehrli
Anton
3001
M
ü
ller
Julia
3002
Schmidt
Max
3003
Schneider
Lena
3004
Fischer
Paul
3005
Wagner
Sophie
3006
Schulz
Lucas
3007
Becker
Laura
3008
Hoffmann
David
3009
Schwarz
Emma
3010
Werner
Liam
\
.
-- TABLE Aufführungsmitglied
COPY
Auff
ü
hrungsmitglied
(
ID
,
Nachname
,
Vorname
,
Alter
)
FROM
stdin
WITH
(
ENCODING
'UTF8'
);
2000
Schnell
Marie
29
2010
Gschwind
Fritz
41
2020
Test
Hans
31
2030
Meyer
Carla
28
2031
Koch
Simon
37
2032
Huber
Sarah
42
2033
Lehmann
Tom
32
2034
Schuster
Isabella
26
2035
Bauer
Alexander
29
2036
Sch
ä
fer
Hannah
31
2037
Klein
Niklas
35
2038
Wolf
Sophia
39
2039
Sauer
Noah
30
2666
Beeler
Hans
36
2701
Graber
Berta
30
3000
Aarburg
Werner
40
3019
Kern
Veronika
50
3333
Wernli
Peter
35
3338
Kramer
Luise
37
4000
Rey
Herbert
46
4010
Danuser
Vreni
32
\
.
-- TABLE Tier
-- TABLE Tier
COPY
Tier
(
ID
)
FROM
stdin
WITH
(
ENCODING
'UTF8'
);
2666
2701
3000
3019
3333
3338
3401
3456
\
.
-- TABLE Artist
COPY
Artist
(
ID
,
Lohn
)
FROM
stdin
WITH
(
ENCODING
'UTF8'
);
2000
4750
.
6
2010
5000
.
0
2020
5500
.
5
2030
3501
.
3
2031
4589
.
0
2032
5500
.
3
2033
2060
.
0
2034
2394
.
7
2035
4000
.
5
2036
2850
.
1
2037
3200
.
2
2038
4750
.
6
2039
5000
.
0
2666
3501
.
3
2701
4589
.
0
3000
5500
.
3
3019
2060
.
0
3333
2394
.
7
3338
4000
.
5
4000
2850
.
1
4010
3200
.
2
\
.
This diff is collapsed.
Click to expand it.