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
Andreas Bachmann
Dbs1 Coder Working Space
Commits
75eb8e93
Commit
75eb8e93
authored
1 year ago
by
Sabrina Mélanie Forster
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.ost.ch/andreas.bachmann/dbs-1-coder-working-space
parents
33633ed0
475fe42c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.coder/.redo/db.sqlite3
+0
-0
0 additions, 0 deletions
.coder/.redo/db.sqlite3
Testat2/3_inserts.sql
+14
-14
14 additions, 14 deletions
Testat2/3_inserts.sql
Testat2/5_queries.sql
+6
-1
6 additions, 1 deletion
Testat2/5_queries.sql
with
20 additions
and
15 deletions
.coder/.redo/db.sqlite3
+
0
−
0
View file @
75eb8e93
No preview for this file type
This diff is collapsed.
Click to expand it.
Testat2/3_inserts.sql
+
14
−
14
View file @
75eb8e93
...
...
@@ -66,18 +66,18 @@ VALUES
(
6
,
74
,
NULL
),
(
7
,
201
,
NULL
);
INSERT
INTO
anmeldung
(
mitglied
,
wettkampf
,
typ
,
kommentar
)
INSERT
INTO
anmeldung
(
person
,
tournier
,
typ
,
kommentar
)
VALUES
(
1
,
1
,
1
,
""
),
(
2
,
1
,
1
,
""
),
(
3
,
1
,
1
,
""
),
(
4
,
1
,
1
,
""
),
(
5
,
1
,
1
,
""
),
(
6
,
1
,
1
,
""
),
(
1
,
2
,
1
,
"Provisorisch auch als Kampfrichter Verfügbar"
),
(
1
,
3
,
1
,
""
),
(
5
,
1
,
1
,
""
),
(
7
,
1
,
2
,
""
),
(
7
,
1
,
1
,
""
),
(
7
,
1
,
3
,
""
),
(
7
,
1
,
4
,
""
)
\ No newline at end of file
(
1
,
1
,
1
,
''
),
(
2
,
1
,
1
,
''
),
(
3
,
1
,
1
,
''
),
(
4
,
1
,
1
,
''
),
(
5
,
1
,
1
,
''
),
(
6
,
1
,
1
,
''
),
(
1
,
2
,
1
,
'Provisorisch auch als Kampfrichter Verfügbar'
),
(
1
,
3
,
1
,
''
),
(
5
,
2
,
1
,
''
),
(
7
,
1
,
2
,
''
),
(
7
,
2
,
1
,
''
),
(
7
,
3
,
2
,
''
),
(
7
,
4
,
2
,
''
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Testat2/5_queries.sql
+
6
−
1
View file @
75eb8e93
...
...
@@ -7,9 +7,14 @@
-- 1.1 DISTINCT
SELECT
DISTINCT
ort
,
name
FROM
wettkampf
ORDER
BY
ort
ASC
;
-- 1.2 JOIN über mehrere Tabellen
SELECT
SELECT
m
.
name
,
m
.
mail
,
k
.
spezialgebiet
,
a
.
typ
,
a
.
tournier
FROM
mitglied
AS
m
,
kampfrichter
AS
k
,
anmeldung
AS
a
WHERE
a
.
person
=
m
.
id
AND
k
.
id
=
m
.
id
AND
a
.
typ
=
2
;
-- 1.3 Query mit unterabfrage inkl. Angabe ob diese korreliert ist oder unkorreliert
-- 1.4 Query mit ANY, IN, EXISTS oder ALL
SELECT
ALL
mitglied
.
name
,
teilnehmer
.
startnummer
FROM
teilnehmer
JOIN
mitglied
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment