LibreOffice logo
BASEDOCUMENTER
The software tool for documenting your LibreOffice Base applications
 
Database file/home/jean-pierre/Documents/BaseDocumenter/www/databases/WorldCup/WorldCup.odb
File actual save date2018-08-14 17:26:18
Scanning done on2018-08-21 17:56:57
Documentation generated on2018-08-21 17:57:07
Table of contents
WorldCup
List of tables
Table name Used by Relationships List of fields Number of records Table data (sample) SQL
Countries Groupings (Table)
Matches (Table)
GroupStagePairings (Query)
GroupStageTables (Query)
qCountryPicker (Query)
qRank_All (Query)
qRank_Current (Query)
qReportGroupStage (Query)
Setup/1. Translations and Tournaments (Form)
  Details 185 Data  
Defaults Pairings (Table)
vCurrentDefaults (Table)
GroupStagePairings (Query)
Setup/3. Modified Pairings|Dummy|DefaultsFinals (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16 (Control)
  Details 64 Data  
Filter vCurrentDefaults (Table)
Query1 (Query)
Query3 (Query)
qRank_Current (Query)
qReportGroupStage (Query)
Group Stage (Form)
Knock Out Stage (Form)
Setup/1. Translations and Tournaments|CurrentTournamentForm (Control)
Setup/2. Initial Groups (Form)
Setup/3. Modified Pairings (Form)
Setup/3. Modified Pairings|Dummy|DefaultsFinals (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16 (Control)
  Details 5 Data  
Groupings vMergeGroupStage (Table)
GroupStagePairings (Query)
GroupStageTables (Query)
Setup/2. Initial Groups|Tournaments|TH3 (Control)
Setup/2. Initial Groups|Tournaments|TH2 (Control)
Setup/2. Initial Groups|Tournaments|TH1 (Control)
Setup/2. Initial Groups|Tournaments|TG3 (Control)
Setup/2. Initial Groups|Tournaments|TG2 (Control)
Setup/2. Initial Groups|Tournaments|TG1 (Control)
Setup/2. Initial Groups|Tournaments|TF3 (Control)
Setup/2. Initial Groups|Tournaments|TC2 (Control)
Setup/2. Initial Groups|Tournaments|TH4 (Control)
Setup/2. Initial Groups|Tournaments|TC1 (Control)
Setup/2. Initial Groups|Tournaments|TB4 (Control)
Setup/2. Initial Groups|Tournaments|TB3 (Control)
Setup/2. Initial Groups|Tournaments|TB2 (Control)
Setup/2. Initial Groups|Tournaments|TG4 (Control)
Setup/2. Initial Groups|Tournaments|TB1 (Control)
Setup/2. Initial Groups|Tournaments|TA4 (Control)
Setup/2. Initial Groups|Tournaments|TA3 (Control)
Setup/2. Initial Groups|Tournaments|TF2 (Control)
Setup/2. Initial Groups|Tournaments|TA2 (Control)
Setup/2. Initial Groups|Tournaments|TF1 (Control)
Setup/2. Initial Groups|Tournaments|TF4 (Control)
Setup/2. Initial Groups|Tournaments|TA1 (Control)
Setup/2. Initial Groups|Tournaments|TC3 (Control)
Setup/2. Initial Groups|Tournaments|TC4 (Control)
Setup/2. Initial Groups|Tournaments|TD1 (Control)
Setup/2. Initial Groups|Tournaments|TD2 (Control)
Setup/2. Initial Groups|Tournaments|TD3 (Control)
Setup/2. Initial Groups|Tournaments|TD4 (Control)
Setup/2. Initial Groups|Tournaments|TE1 (Control)
Setup/2. Initial Groups|Tournaments|TE2 (Control)
Setup/2. Initial Groups|Tournaments|TE3 (Control)
Setup/2. Initial Groups|Tournaments|TE4 (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Table Control 1|BMod (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Table Control 1|AMod (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Table Control 1|B (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Table Control 1|A (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Pairings|List Box 1 (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Pairings|List Box 1 (Control)
Countries (Table)
Tournaments (Table)
Details 192 Data  
Matches vFinalRanking (Table)
vFinals (Table)
vMatchofHonour (Table)
vMergeGroupStage (Table)
vPointsGoals (Table)
Group Stage|MainForm|M (Control)
Knock Out Stage|Tournaments|MatchOfHonour|M (Control)
Knock Out Stage|Tournaments|Q58|M (Control)
Knock Out Stage|Tournaments|Q57|M (Control)
Knock Out Stage|Tournaments|S62|M (Control)
Knock Out Stage|Tournaments|P56|X (Control)
Knock Out Stage|Tournaments|Q59|M (Control)
Knock Out Stage|Tournaments|P54|M (Control)
Knock Out Stage|Tournaments|Q60|M (Control)
Knock Out Stage|Tournaments|P53|M (Control)
Knock Out Stage|Tournaments|Finale|M (Control)
Knock Out Stage|Tournaments|P49|M (Control)
Knock Out Stage|Tournaments|S61|M (Control)
Knock Out Stage|Tournaments|P55|X (Control)
Knock Out Stage|Tournaments|P50|M (Control)
Knock Out Stage|Tournaments|P51|M (Control)
Knock Out Stage|Tournaments|P52|M (Control)
Countries (Table)
Tournaments (Table)
Details 320 Data  
Pairings vCurrentDefaults (Table)
Setup/3. Modified Pairings|Dummy|DefaultsFinals (Control)
Setup/3. Modified Pairings|Dummy|DefaultsFinals|Pairings (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16 (Control)
Setup/3. Modified Pairings|Dummy|DefaultsR16|Pairings (Control)
Defaults (Table)
Tournaments (Table)
Details 20 Data  
Tournaments Groupings (Table)
Matches (Table)
Pairings (Table)
qRank_All (Query)
qReportGroupStage (Query)
qTournamentPicker (Query)
Group Stage|Tournament (Control)
Knock Out Stage|Tournaments (Control)
Setup/1. Translations and Tournaments (Form)
Setup/2. Initial Groups|Tournaments (Control)
  Details 6 Data  
vCurrentDefaults vMergeGroupStage (Table)
vRound16 (Table)
Finals (Query)
MatchOfHonour (Query)
Query1 (Query)
Round16 (Query)
Setup/3. Modified Pairings|Dummy (Control)
  Details 64 Data
SELECT 
"F"."INT1" AS "TID",
"D"."G",
COALESCE("P"."A", "D"."A") AS "A",
COALESCE("P"."B", "D"."B") AS "B",
"D"."ID"
FROM
PUBLIC."Defaults" AS "D",
PUBLIC."Filter" AS "F"
LEFT JOIN PUBLIC."Pairings" AS "P" ON "F"."INT1" = "P"."TID"
AND "D"."ID" = "P"."ID"
WHERE
"F"."ID" = 0
vFinalRanking qRank_All (Query)
qRank_Current (Query)
  Details 160 Data
SELECT 
1 AS "R",
CASEWHEN("X" > "Y", "A", "B") AS "CC",
"TID",
"X",
"Y",
CASEWHEN("X" > "Y", "X" - "Y", "Y" - "X") AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'Z'
UNION
SELECT
2 AS "R",
CASEWHEN("X" < "Y", "A", "B") AS "CC",
"TID",
"X",
"Y",
CASEWHEN("X" < "Y", "X" - "Y", "Y" - "X") AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'Z'
UNION
SELECT
3 AS "R",
CASEWHEN("X" > "Y", "A", "B") AS "CC",
"TID",
"X",
"Y",
CASEWHEN("X" > "Y", "X" - "Y", "Y" - "X") AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'Y'
UNION
SELECT
4 AS "R",
CASEWHEN("X" < "Y", "A", "B") AS "CC",
"TID",
"X",
"Y",
CASEWHEN("X" < "Y", "X" - "Y", "Y" - "X") AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'Y'
UNION ALL
SELECT
5 AS "R",
"A" AS "CC",
"TID",
"X",
"Y",
"X" - "Y" AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'Q'
AND "X" < "Y"
UNION ALL
SELECT
5 AS "R",
"B" AS "CC",
"TID",
"X",
"Y",
"X" - "Y" AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'Q'
AND "X" > "Y"
UNION ALL
SELECT
6 AS "R",
"A" AS "CC",
"TID",
"X",
"Y",
"X" - "Y" AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'P'
AND "X" < "Y"
UNION ALL
SELECT
6 AS "R",
"B" AS "CC",
"TID",
"X",
"Y",
"X" - "Y" AS "D"
FROM
PUBLIC."Matches"
WHERE
"G" = 'P'
AND "X" > "Y"
UNION ALL
SELECT
7 AS "R",
"T" AS "CC",
"TID",
"GAIN",
"LOSS",
"GDIFF"
FROM
PUBLIC."vGroupStageRanking"
WHERE
"Rank" = 3
UNION ALL
SELECT
8 AS "R",
"T" AS "CC",
"TID",
"GAIN",
"LOSS",
"GDIFF"
FROM
PUBLIC."vGroupStageRanking"
WHERE
"Rank" = 4
vFinals Finals (Query)   Details 70 Data
SELECT 
"TID",
"G",
CASEWHEN("X" > "Y", "A", "B") AS "Q",
"MID"
FROM
PUBLIC."Matches"
WHERE
"G" BETWEEN 'P' AND 'S'
vGroupStageFix GroupStageFix (Query)
Round16 (Query)
  Details 160 Data
SELECT 
"GST1"."TID",
"GST1"."G",
ASCII("GST1"."G") AS "GN",
"GST1"."T",
"GST1"."GDIFF",
"GST1"."CNT",
"GST1"."PTS",
"GST1"."MAX",
"GST1"."R",
"GST1"."Rank",
"GST2"."T" IS NULL
AND "CNT" > 1 AS "FIX"
FROM
PUBLIC."vGroupStageRanking" AS "GST1"
LEFT JOIN PUBLIC."vGroupStageRanking" AS "GST2" ON "GST2"."TID" = "GST1"."TID"
AND "GST2"."G" = "GST1"."G"
AND "GST1"."R" > "GST2"."R"
AND "GST1"."PTS" <= "GST2"."MAX"
AND "GST2"."CNT" < 3
GROUP BY
"GST1"."TID",
"GST2"."TID",
"GST1"."G",
"GST1"."T",
"GST1"."PTS",
"GST1"."GDIFF",
"GST1"."CNT",
"GST1"."MAX",
"GST1"."R",
"GST1"."Rank",
"GST2"."T" IS NULL
AND "CNT" > 1
vGroupStageRanking vFinalRanking (Table)
vGroupStageFix (Table)
GroupStageTables (Query)
qReportGroupStage (Query)
  Details 160 Data
SELECT 
"GST1"."TID",
"GST1"."G",
"GST1"."T",
"GST1"."GDIFF",
"GST1"."CNT",
"GST1"."PTS",
"GST1"."GAIN",
"GST1"."LOSS",
"GST1"."MAX",
"GST1"."R",
COUNT("GST1"."TID") AS "Rank"
FROM
PUBLIC."vGroupStageTables" AS "GST1"
JOIN PUBLIC."vGroupStageTables" AS "GST2" ON "GST1"."R" <= "GST2"."R"
AND "GST1"."TID" = "GST2"."TID"
AND "GST1"."G" = "GST2"."G"
GROUP BY
"GST1"."TID",
"GST1"."G",
"GST1"."T",
"GST1"."PTS",
"GST1"."GAIN",
"GST1"."LOSS",
"GST1"."GDIFF",
"GST1"."CNT",
"GST1"."MAX",
"GST1"."R"
vGroupStageTables vGroupStageRanking (Table)   Details 160 Data
SELECT 
TID,
G,
T,
SUM("PTS") AS "PTS",
SUM(GAIN) AS GAIN,
SUM(LOSS) AS LOSS,
SUM("GDIFF") AS GDIFF,
COUNT(*) AS CNT,
3 *(
3 - COUNT(*))+ SUM("PTS") AS "MAX",
SUM(PTS)* 10000 + SUM(GDIFF)* 1000 + SUM(GAIN)* 10 + SUM(LOSS) AS R
FROM
PUBLIC."vPointsGoals"
GROUP BY
TID,
G,
T
vMatchofHonour MatchOfHonour (Query)   Details 30 Data
SELECT 
"TID",
"G",
CASEWHEN("X" < "Y", "A", "B") AS "Q",
"MID"
FROM
PUBLIC."Matches"
WHERE
"G" BETWEEN 'Q' AND 'S'
vMergeGroupStage Group Stage|MainForm (Control)   Details 48 Data
SELECT 
"vCurrentDefaults"."TID",
"vCurrentDefaults"."G",
"vCurrentDefaults"."ID" AS "MID",
"Groupings_1"."CC" AS "CCA",
"Groupings"."CC" AS "CCB",
"X",
"Y"
FROM
PUBLIC."vCurrentDefaults"
LEFT OUTER JOIN PUBLIC."Groupings" ON "vCurrentDefaults"."TID" = "Groupings"."TID"
AND "vCurrentDefaults"."G" = "Groupings"."G"
AND "vCurrentDefaults"."B" = "Groupings"."N"
LEFT OUTER JOIN PUBLIC."Groupings" AS "Groupings_1" ON "vCurrentDefaults"."TID" = "Groupings_1"."TID"
AND "vCurrentDefaults"."G" = "Groupings_1"."G"
AND "vCurrentDefaults"."A" = "Groupings_1"."N"
LEFT OUTER JOIN PUBLIC."Matches" ON "vCurrentDefaults"."ID" = "Matches"."MID"
AND "vCurrentDefaults"."TID" = "Matches"."TID"
AND "vCurrentDefaults"."G" = "Matches"."G"
WHERE
"vCurrentDefaults"."G" < 'I'
vPointsGoals vGroupStageTables (Table)
qRank_All (Query)
  Details 480 Data
SELECT 
M.TID,
M.G,
M.A AS T,
POWER(
2,
SIGN(M.X - M.Y) +1) -1 AS PTS,
M.X AS GAIN,
M.Y AS LOSS,
M.X - M.Y AS GDIFF
FROM
PUBLIC."Matches" AS M
WHERE
M.G <= 'H'
UNION ALL
SELECT
M.TID,
M.G,
M.B AS T,
POWER(
2,
SIGN(M.Y - M.X) +1) -1 AS PTS,
M.Y AS GAIN,
M.X AS LOSS,
M.Y - M.X AS GDIFF
FROM
PUBLIC."Matches" AS M
WHERE
M.G <= 'H'
vRound16     Details 8 Data
SELECT 
"D"."TID",
"D"."G",
"D"."ID",
CHAR("D"."A") AS "GA",
CHAR("D"."B") AS "GB"
FROM
PUBLIC."vCurrentDefaults" AS "D"
WHERE
"G" = 'P'