Skip to content
Snippets Groups Projects
Commit 75eb8e93 authored by Sabrina Mélanie Forster's avatar Sabrina Mélanie Forster
Browse files
parents 33633ed0 475fe42c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment