Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| modul:m290:learningunits:lu06:aufgaben:a01 [2024/10/28 14:39] – vdemir | modul:m290:learningunits:lu06:aufgaben:a01 [2024/10/29 11:55] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 15: | Zeile 15: | ||
| Before we spend elbow grease, we need to prepare our working enviroment. Meaning we need to prepare our computer for the assignments later. | Before we spend elbow grease, we need to prepare our working enviroment. Meaning we need to prepare our computer for the assignments later. | ||
| - | ==== Task A1 ==== | + | ==== Task 1.1 ==== |
| **Login as root**: Login in from Webstorm to your database as //root// (sysdba = systemadministrator for the datababase) with your a // | **Login as root**: Login in from Webstorm to your database as //root// (sysdba = systemadministrator for the datababase) with your a // | ||
| - | ==== Task A2 ==== | + | ==== Task 1.2 ==== |
| **New Database**: Create a new database named // | **New Database**: Create a new database named // | ||
| CREATE DATABASE myDatabase; | CREATE DATABASE myDatabase; | ||
| - | ==== Task A3 ==== | + | ==== Task 1.3 ==== |
| **use db**: Use that newly created db. | **use db**: Use that newly created db. | ||
| USE myDatabase; | USE myDatabase; | ||
| - | ==== Task A4: ==== | + | ==== Task 1.4: ==== |
| - | ** Create a test table**: Create a table //user// with 3 columns of your choice as a test table, and fill it with some test data. | + | ** Create a test table**: Create a table //users// with 3 columns of your choice as a test table. |
| - | CREATE TABLE user ( | + | CREATE TABLE users ( |
| user_id INT AUTO_INCREMENT PRIMARY KEY, | user_id INT AUTO_INCREMENT PRIMARY KEY, | ||
| username VARCHAR(50) NOT NULL, | username VARCHAR(50) NOT NULL, | ||
| Zeile 37: | Zeile 37: | ||
| ); | ); | ||
| | | ||
| - | | + | ==== Task 1.5: ==== |
| - | | + | **Content data for testing:** Fill the table user with some test data: |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | (' |
| - | | + | (' |
| - | | + | (' |
| - | | + | (' |
| - | | + | (' |
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| ===== Solution ===== | ===== Solution ===== | ||