Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
modul:m290:learningunits:lu07:aufgaben:03 [2024/10/01 09:53] – angelegt vdemir | modul:m290:learningunits:lu07:aufgaben:03 [2024/10/17 12:45] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== | + | ====== |
===== Requirements | ===== Requirements | ||
Zeile 6: | Zeile 6: | ||
* Means of aid: | * Means of aid: | ||
* Only teaching materials, no websearch, no use of ai. | * Only teaching materials, no websearch, no use of ai. | ||
- | * Expected Result: | + | * Expected Result: |
===== Assignments ===== | ===== Assignments ===== | ||
In assignment A2 you imported 30 lines of date to the table ' | In assignment A2 you imported 30 lines of date to the table ' | ||
- | ==== A: Update with OR ==== | + | ==== A: Basic Update ==== |
+ | The employee ‘Laura Clark’ got divorced and therefore took her maiden name. Update her data record in the table. | ||
+ | |||
+ | ==== B: Update with OR ==== | ||
As a company policy the attribute ' | As a company policy the attribute ' | ||
- | UPDATE employees | + | ==== C: Update with AND ==== |
- | SET sex = '' | + | The performance |
- | WHERE sex = ' | + | |
- | + | ||
- | After performing the update statement, the select on the table ' | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | + | ||
- | ==== B: One single INSERT statement | + | |
- | After inserting 10 lines of data with 10 separate SQL commands, the next step is to do the import with one single SQL commands, which is basicly more compact and more efficient, that the first approach. Insert the following 20 lines of data into the table " | + | |
- | | ||
===== Solution ===== | ===== Solution ===== | ||
- | [[modul: | + | [[modul: |
===== Vocabulary ===== | ===== Vocabulary ===== |