Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
modul:m290:learningunits:lu07:aufgaben:01 [2024/09/30 14:09] vdemirmodul:m290:learningunits:lu07:aufgaben:01 [2024/10/17 12:45] (aktuell) vdemir
Zeile 1: Zeile 1:
-====== LU07.A01 - Preparations for the assignment of the DML commands ======+====== LU08.A01 - Preparatory work ======
  
 ===== 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.
-  * Establishment of a MySQL table **employee** and import of the provided inital data in order to perform the requirements of the task: 2: INSERT, 3: UPDATE, 4: DELETE  +  * Expected result:  
 +    * Conduct the database schema (instance) as foundation for our employee's data. 
 +    * Establishment of a MySQL **table employees** including all relevant attributes.
  
-===== Preparation Assignments =====+===== Assignments ===== 
 + 
 +==== A: DATA SCHEMA ====
 First of all we need a database schema (database workspace). Execute the following two lines on your MySQL installation. First of all we need a database schema (database workspace). Execute the following two lines on your MySQL installation.
  
Zeile 14: Zeile 18:
   SHOW DATABASES;   SHOW DATABASES;
   USE hr_database;   USE hr_database;
-   
-After executing the three SQL commands above, the feedback from your database would look like in the image below:{{:modul:m290:learningunits:lu07:aufgaben:m290.lu07.s01a.png?600|}} 
- 
  
 ==== B: CREATE TABLE ==== ==== B: CREATE TABLE ====
 To exercise the DML commands, we need a suitable table including a reasonable amout of data. The following SQL statement will create a table **employee** regarding all necessary attributes of an "average employee". To exercise the DML commands, we need a suitable table including a reasonable amout of data. The following SQL statement will create a table **employee** regarding all necessary attributes of an "average employee".
- 
  
   CREATE TABLE EMPLOYEES (   CREATE TABLE EMPLOYEES (
Zeile 43: Zeile 43:
   - **department** is a VARCHAR(50) field that stores the name of the department the employee is associated with. It has a NOT NULL constraint to ensure that every employee is assigned to a department.   - **department** is a VARCHAR(50) field that stores the name of the department the employee is associated with. It has a NOT NULL constraint to ensure that every employee is assigned to a department.
  
-==== C: Inital DataImport ==== 
-Once we have created our 'employees' table, we need a reasonable amount of data to be able to make the assignments. The following SQL INSERTS will provide you with the inital data. Though execute the follwing INSERT statements on your MySQL. 
- 
- 
-==== Task B ==== 
-Display all instances which are currently running on our database. 
- 
-==== Task C ==== 
-Create the database instances  
-  * myDB_PERFECT 
-  * myDB_OK 
-  * myDB_OBSOLETE 
- 
-and display your result. 
- 
-==== Task D ==== 
-Drop the instance "myDB_obsolete", as it obviously obsolete (no longer needed). Display the result. 
- 
-==== Task E ==== 
-Activate the instance "myDB_good" by using the USE command. 
- 
-==== Task F ==== 
-Display the system date by using the command "SELECT sysdate();" 
-  
 ===== Solution ===== ===== Solution =====
-[[modul:m290:learningunits:lu05:loesungen:l01|Lösung]] +[[modul:m290:learningunits:lu07:loesungen:l01|Lösung]]
  
 ===== Vocabulary ===== ===== Vocabulary =====
 ^ English ^ German ^  ^ English ^ German ^ 
-obsolete überflüssig | +preparatary work Vorarbeit |
-| credential | Berechtigungsnachweis |+
  
  
 ---- ----
 [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir
  • modul/m290/learningunits/lu07/aufgaben/01.1727698161.txt.gz
  • Zuletzt geändert: 2024/09/30 14:09
  • von vdemir