Database COC3
Database COC3
Suppose you are a database administrator in a company and assigned to create a database that
management the information about the company employees.
Emp ID Char 50
Fname Char 50
Lname Char 50
Sex Char 10
Salary Numeric
Dep ID Char 10
Table 3: training
Emp ID
Training ID
Title
Ins name
Duration
1. Insert the following record in to department table by using query analyze Dept Id=0116 Dep
name =marketing
2. Write SQL statement that displays records that containing EmpID, First name, last name and
department name and save it by name Employees in my document folder.
3. Write SQL statement that displays the total salary of employees for each dept and save it by the
name salary in my document folder
4. Write SQL statement that increases the salary of employees by 20% and save it by name
increment in my document
5. Write SQL that delete the record that contain zelalem from employee table and save it by the
name zelalem in my documents folders.
6. Take Backup HRM database and save the backup in the my documents folder.
Oral Question
Observation
Create the database named HRM
Create table
Identified field for each table
Identified primary key
Create a relationship b/n tables
Insert data in the appropriate tables
Extract records from d/t tables using SQL
Use aggregate function
Modify records using SQL
Take backup and put it in the destination folder