LU07.A02 - SQL-DDL: Table Management

Requirements

Case studies / Assignments

Here are six tasks related to MySQL table management, covering CREATE TABLE, ALTER TABLE, and DROP TABLE commands.Have fun 8-)

Task A: CREATE TABLE

Create a table called employees with the following columns:

Task B: CREATE TABLE

Create a table called products to store inventory information. The table should have:

Task C: ALTER TABLE

Add a new column email (VARCHAR 100) to the employees table.

TASK D: MODIFY COLUMN

Change the salary column's data type to FLOAT in the employees table.

TASK E: DROP COLUMN

Remove the stock_quantity column from the products table.

TASK F: DROP TABLE

Completely remove the PRODUCTS table from the database.

Solution

Lösung

Vocabulary

English German

Volkan Demir