Last active
July 4, 2018 23:40
-
-
Save d630/ef240674a44b98eb117be5339492d51e to your computer and use it in GitHub Desktop.
Tag 17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 1) | |
| SELECT * | |
| FROM mitarbeiter | |
| WHERE tagesarbeitszeit IS NULL OR tagesarbeitszeit < 7; | |
| -- 2) | |
| UPDATE mitarbeiter | |
| SET tagesarbeitszeit = tagesarbeitszeit + tagesarbeitszeit * 0.10 | |
| WHERE tagesarbeitszeit IS NOT NULL; | |
| -- 3) | |
| DELETE | |
| FROM mitarbeiter | |
| WHERE vorname IS NULL OR vorname = ''; | |
| -- 4) | |
| SELECT * | |
| INTO mitarbeiter2 | |
| FROM mitarbeiter; | |
| -- in SQLite: | |
| CREATE | |
| TABLE mitarbeiter2 AS | |
| SELECT * | |
| FROM mitarbeiter; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment