0% found this document useful (0 votes)
142 views2 pages

DBMS COC Examination

1. Create an HRM database with three tables: Department, Employee, and Training. 2. Populate the tables with sample data, including records for departments and employee information like name, hire date, salary. 3. Define primary keys and relationships between the tables. 4. Perform sample queries on the data like retrieving employee names and departments, increasing salaries by 20%, and displaying total salaries by department. 5. Backup and modify the database by deleting records.

Uploaded by

Ewunetu Dejene
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)
142 views2 pages

DBMS COC Examination

1. Create an HRM database with three tables: Department, Employee, and Training. 2. Populate the tables with sample data, including records for departments and employee information like name, hire date, salary. 3. Define primary keys and relationships between the tables. 4. Perform sample queries on the data like retrieving employee names and departments, increasing salaries by 20%, and displaying total salaries by department. 5. Backup and modify the database by deleting records.

Uploaded by

Ewunetu Dejene
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/ 2

Project 1: Design Database Human Resource management system

1. Create the database named “HRM” in Human Resource database design.


2. Create the following three tables in HRM Database Management system
Department:

Field Name Data Type Size


Dept ID Char 10
Dept Name Char 50
Employee:

Field Name Data Type Size


EmpID Char 50
Fname Char 50
Lname Char 50
Sex Char 10
BirthDate Datetime
HireDate Datetime
Salary Numeric
DeptID Char 10
Training:

Field Name Data Type Size


EmpID Char 50
TrainingID Char 10
Title Char 100
InstName Char 50
Duration Char 50

3. Insert Records as follows in the three tables

Department:

Employee:
Training:

4. Make DeptID primary key for Department table, EmpID primary key for Employee ,TrainingID is the primary key
for Training tables and create the relationship between three tables as follows

EmpID
Fname
EmpID Lname
TrainingID Sex
Title BirthDate
InstName HireDate
Duration Salary
DeptID

Dept ID
5. Insert the following record in to Department table Dept Name
DeptID=0118 Deptname=Marketting
6. Retrieve EmpID, Fname, Lname and department Name of employees and save it with “Employee” in my
documents folder.
7. Increament salaries of employees with 20% and save it with “Increment” in my documents folder.
8. Display sum of salary of employees for each department and save it as “Salary” in my documents folder.
9. Backup HRM database and save it in my documents folder.
10. Delete employee’s record of employees whose first name is “Zelalem”.

You might also like