Database Design and SQL Queries for MIS602 Assignment 1
VerifiedAdded on 2022/09/01
|13
|2159
|29
Practical Assignment
AI Summary
This assignment solution demonstrates the creation and manipulation of a relational database using SQL queries. The student begins by creating three tables: `department`, `employee`, and `salary`, defining their respective attributes and primary keys. Foreign key relationships are established between the `employee` and `department` tables. The solution then proceeds to insert data into these tables, populating them with sample employee, department, and salary information. A series of SQL queries are implemented to retrieve, modify, and analyze the data. These queries cover a range of operations, including selecting all data from a table, selecting specific columns, filtering data based on conditions (e.g., salary, job title, date of hire), updating salaries, deleting records, and counting the number of employees. The solution encompasses a variety of SQL commands, including `CREATE TABLE`, `INSERT INTO`, `ALTER TABLE`, `SELECT`, `UPDATE`, `DELETE`, `WHERE`, `ORDER BY`, `DISTINCT`, `COUNT`, and `GROUP BY`, showcasing a comprehensive understanding of database management principles. The student also provides an overall experience of the assignment and the bibliography.
1 out of 13