Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| modul:m290:learningunits:lu04:theorie:a_syntax [2024/08/30 10:13] – vdemir | modul:m290:learningunits:lu04:theorie:a_syntax [2024/10/17 12:33] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== | + | ====== |
| - | ===== Introduction ===== | + | As we know, **SQL** stands for **S**tructured **Q**uery **L**anguage. Consequently, |
| - | As we know, **SQL** stands for **S**tructured **Q**uery **L**anguage. Consequently, | + | |
| - | ===== NOTE ===== | + | {{: |
| - | Please note that the use og CAPITAL LETTERS for SQL commands and tabs can make it easier for you to maintain your program code. | + | |
| + | ===== NOTES | ||
| + | * The content of this chapter is based on the [[https:// | ||
| + | * Please note that the use og CAPITAL LETTERS for SQL commands and tabs can make it easier for you to maintain your program code. | ||
| + | * Make sure, that every complete sql statement is finished by a semicolon (;). | ||
| ===== The Syntax of DML commands ===== | ===== The Syntax of DML commands ===== | ||
| Every SQL query is composed by three main commands: | Every SQL query is composed by three main commands: | ||
| - | | + | |
| + | | ||
| * **FROM** myTable | * **FROM** myTable | ||
| * **WHERE** myCondition. | * **WHERE** myCondition. | ||
| + | * **ORDER BY** myColumn2 **ASC|DESC**; | ||
| - | With SELECT | + | With **SELECT** we specify which columns |
| - | ===== Example | + | ===== Basic example |
| - | Let us take a table **Customers** | + | Let' |
| + | |||
| + | {{: | ||
| + | |||
| + | To retrieve | ||
| | | ||
| Zeile 26: | Zeile 35: | ||
| FROM Customers; | FROM Customers; | ||
| - | The result would be as to be seen below. | + | The result |
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| - | {{: | ||
| ===== Vocabulary ===== | ===== Vocabulary ===== | ||
| ^ English ^ German ^ | ^ English ^ German ^ | ||
| + | | precondition | Vorbedingung | | ||
| + | | exhaustive | ||
| + | | clause | Abschnitt | | ||
| + | | to determine | bestimmen | | ||
| + | | to fetch | abrufen, holen | | ||
| | be composed by | besteht aus | | | be composed by | besteht aus | | ||
| | notation | Schreibweise | | | notation | Schreibweise | | ||
| - | |||
| ---- | ---- | ||
| [[https:// | [[https:// | ||