0% found this document useful (0 votes)
120 views

Database COC3

The document describes a practical exam for a database administrator to create an employee database. The tasks include: 1) Creating an HRM database and tables for Departments, Employees, and Training; 2) Establishing relationships between tables and primary keys; 3) Populating the tables with sample data; 4) Writing SQL queries to display, summarize, modify data; and 5) Backing up the database. The administrator is evaluated on properly designing and implementing the database, writing effective SQL statements, and answering questions about database scope, performance, protection, documentation, and user satisfaction.

Uploaded by

Roha Cbc
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

Database COC3

The document describes a practical exam for a database administrator to create an employee database. The tasks include: 1) Creating an HRM database and tables for Departments, Employees, and Training; 2) Establishing relationships between tables and primary keys; 3) Populating the tables with sample data; 4) Writing SQL queries to display, summarize, modify data; and 5) Backing up the database. The administrator is evaluated on properly designing and implementing the database, writing effective SQL statements, and answering questions about database scope, performance, protection, documentation, and user satisfaction.

Uploaded by

Roha Cbc
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Database Administrator Level-3

Practical exam Level 3

Suppose you are a database administrator in a company and assigned to create a database that
management the information about the company employees.

The main tasks of the project are the following

1. Create a database named HRM using SQL server 2000enterprise manager


2. Create the following tables in HRM database by using the following information
Table 1: Department

Field name Data type Size


Dep ID Char 10
Dep name Char 50
Table2: Employee

Field name Data type Size

Emp ID Char 50

Fname Char 50

Lname Char 50

Sex Char 10

DOB Date and time

Higher date Date and time

Salary Numeric

Dep ID Char 10

Table 3: training

Field name Data type Size


Emp-ID Char 10
Training ID Char 10
Title Char 10
Instructor name Char 50
Duration Char 50
1. Set dep Id for department Emp ID for Employee training ID for training table as primary key.
2. Create a relationship the 3 tables
Emp Id
Fname
Lname
Sex
DOB
Dep id Salary
Dep ID
Dep name

Emp ID
Training ID
Title
Ins name
Duration

3. Insert the following records in to respective tables

Dep ID Dep name


0111 Finance
0112 Human resource
0113 Information technology
0114 Planning
0115 Procumbent
Emp id First name Last name Sex Date of Hired date Salary Dept ID
birth
E001 Abebe Mekasha M 12/4/1950 6/15/1987 4000 0111
E002 Tewodros Sileshi M 5/27/1975 3/27/1996 3000 0113
E003 Selam Nigussie F 4/9/1986 12/5/2006 1500 0114
E004 Bekele Abera M 12/3/1967 5/13/2000 10000 0115
E005 Taye Daniel M 5/13/1980 4/6/2000 2500 0114
E006 Aster Debebe F 12/6/1981 3/8/2001 4500 0112
E007 Samson Begashaw M 12/5/1968 1/5/1995 8000 0111
E008 Meaza Birru F 3/13/1950 3/2/1970 6000 0115
E009 Almaz Bekafa F 2/7/1980 3/5/2000 1000 0112
E010 Zelalem Teshome M 2/5/1963 8/5/1983 6000 0115

Emp id Training id Title Last name Duration


E002 001 Accounting Neuro 2 month
E003 002 Oracle Avu 4 month
E004 003 Mgmt Emi 3 month
E005 004 Strategic planning Emi Month

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

1. How do you determining the scope of the database?


2. What could you do if the performance of the database is not good?
3. How could you protect your database failure?
4. What if the user /database user does not understand how to success and or unsatisfied with the
database?
5. What is the need of having documentation for the database?

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

You might also like