0% found this document useful (0 votes)
6 views1 page

SQL Practical Task

The document outlines a practical SQL task for creating and managing an Employees database named CompanyDB. It includes specific requirements such as creating an Employees table, modifying its structure, inserting records, updating a salary, and deleting a record. Additionally, it instructs on documenting the SQL queries and testing them for correctness before submission.

Uploaded by

hamza zalah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

SQL Practical Task

The document outlines a practical SQL task for creating and managing an Employees database named CompanyDB. It includes specific requirements such as creating an Employees table, modifying its structure, inserting records, updating a salary, and deleting a record. Additionally, it instructs on documenting the SQL queries and testing them for correctness before submission.

Uploaded by

hamza zalah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like