SQL Practical Task: Employee Management System
Task Description
You are hired as a database administrator for a company that wants to manage employee records. Your
task is to create and manage an Employees database using SQL.
Task Requirements:
1. Create a new database named CompanyDB.
2. Use the newly created database in your SQL session.
3. Create a table named Employees with the following columns:
o EmployeeID (INTEGER, Primary Key, Auto Increment)
o FullName (VARCHAR(100), NOT NULL)
o Age (INTEGER, NOT NULL)
o Department (VARCHAR(50), NOT NULL)
o Salary (INTEGER, NOT NULL)
4. Modify the table:
o Add a new column Email (VARCHAR(100), UNIQUE).
o Drop the Age column from the table.
5. Insert at least 3 employee records into the Employees table.
6. Update the salary of one employee to a new value.
7. Delete an employee record from the table.
Table Structure Before Modifications
Instructions:
Write the SQL queries step by step to complete each requirement.
Save your work and test each query to ensure it works correctly.
Submit your final SQL script along with a screenshot of the database tables after
completing all tasks