vault backup: 2026-07-23 10:25:24

This commit is contained in:
Benjamin Neumann
2026-07-23 10:25:24 +02:00
parent b96035fa6e
commit 7c8a0c4b6f
3 changed files with 57 additions and 26 deletions
@@ -0,0 +1,27 @@
### SELECT
```
SELECT MatrNr, Name, Semester from Student
```
Spalte umbenennen
`SELECT MatrNr AS InsassenNr from Student`
Keine Duplikate
`SELECT DISTINCT Semester AS Jahrgänge from Student`
### WHERE
```
SELECT * from Student WHERE Semester = 2
---
SELECT * from Student s WHERE s.Semester = 2 AND s.Name='Byleth'
```
#### Anatomie einer WHERE Klausel
Vergleichsoperatoren: <,>,=,<=,>=,<>
BETWEEN
LIKE
IS NULL / IS NOT NULL
AND, OR, NOT
+,-,\*,/
IN, NOT IN, $\theta$ ANY, $\theta$ ALL, EXISTS mit $\theta$ = Vergleichsoperator