Ankit Dbms
Ankit Dbms
Experiment1.1
Student Name: Ankit Vashisth UID: 22BCS13378
Branch: BE-CSE Section/Group: 707(A)
Semester: 4th Date of Performance: 08/02/2024
Subject Name: DBMS Subject Code: 22CSH-254
2. Objective:
The objective of the provided SQL statements is to perform various operations on the
"Employee" table within a relational database. Each statement serves a specific purpose:
a) Table Creation:
Objective: To create a table named "Employee" with specific columns (EMPNO,
ENAME, JOB, MGR, SAL, COMMISSION) and their respective data types. b) Column
Addition:
Objective: To add a new column named "COMMISSION" to the existing "Employee" table,
extending the table's structure to include commission information.
c) Data Insertion:
Objective: To insert five sample records into the "Employee" table, illustrating the
representation of different employees with distinct attributes such as employee number
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
(EMPNO), name (ENAME), job title (JOB), manager number (MGR), salary (SAL), and
commission (COMMISSION). d) Column Update:
Objective: To update the job details in the "JOB" column for a specific employee (EMPNO
1), reflecting changes in their job title.
e) Column Renaming:
Objective: To rename the "ENAME" column to "EMPLOYEE_NAME" in the
"Employee" table, providing a more descriptive and consistent column name. f)
Data Deletion:
Objective: To delete the employee with EMPNO 105 from the "Employee" table, removing
their record from the dataset.