BIS325 - Database Creation and Manipulation Assignment - Fall 2024
VerifiedAdded on 2019/09/26
|3
|535
|309
Homework Assignment
AI Summary
This assignment solution demonstrates the creation and manipulation of a database using SQL commands. It begins by creating a database named `My_BIS325` and then proceeds to create a table named `Employee` with several attributes like `first_name`, `last_name`, `home_phone`, `social_security_number`, `home_address`, `salary` and `email`. The solution includes inserting data into the `Employee` table and creating another table named `Projects`. It then demonstrates various SQL commands such as `ALTER TABLE` to add and remove columns, `RENAME TABLE`, `UPDATE` to modify data, `TRUNCATE` to remove all data from a table, `DROP TABLE` to delete a table, `DELETE FROM` to remove specific rows, and `DROP PRIMARY KEY` to remove the primary key and `ADD PRIMARY KEY` to add a primary key. The solution effectively showcases basic and advanced SQL operations for managing and querying data within a database.
1 out of 3