Skip to content

Instantly share code, notes, and snippets.

@d630
Last active July 5, 2018 00:26
Show Gist options
  • Save d630/0ff8d0005743710d51742e7e5f83d3b5 to your computer and use it in GitHub Desktop.
Save d630/0ff8d0005743710d51742e7e5f83d3b5 to your computer and use it in GitHub Desktop.
Tag 22:
  1. TODO

    • Kreuztabelle, Kartesisches Produkt, cross join
    • The LEFT JOIN keyword returns all records from the left table (table1), and the matched records from the right table (table2). The result is NULL from the right side, if there is no match. The RIGHT JOIN keyword returns all records from the right table (table2), and the matched records from the left table (table1). The result is NULL from the left side, when there is no match.
    • The INNER JOIN keyword selects records that have matching values in both tables.
    • Es folgt ein Fehler (insofern keine Kaskadierung deklariert ist), weil abhängige Datensätze bestehen.
    • Prozedur, keine Argumente, Patten matching (alle PLZ, die mit 08 beginnen).
Ausgabe A B C
Alle Kunden
Nur besuchte Kunden x x
Alle Besuchstermine x
Nur an Kunden zugewiesene Besuchstermine x x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment