Database Administration Level - 3 Practical Exam Level 3: Filed Name Data Type Size

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Database Administration level – 3

Practical exam level 3


Suppose you are 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 data base named HRM using SQL server 2000 enterprise manager
2. Create the following tables in HRM data base by using the following information

Table 1: Department

Filed name Data type Size


Dep ID Char 10
Dep name Char 50

Table 2: Employee

Filed name Data type SIZE

EMP ID Char 50

F name Char 50

L name Char 50

Sex Char 10

DOB Data and time

Higher date Date and time

Salary numeric

Dep ID Char 10

Table 3:- Training

Filed 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 Employee training ID fortraining table as key
2. Create a relationship the 3 tables
Emp idF name

L nameSex

Dep id DCBSalary
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 F name L name Sex Date of Hired date salary DEP ID


birth
E001 Abebe Mekasha M 12/4/1950 6/15/1987 4000 0111
E002 Tewodrose 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/71980 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 Ava 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 Emp ID ,first name ,last
name and department name and save it by name Employs for each dept and save it
by the name salary in my document folder
3. Write SQL statement that displays the total salary of employees by for each dept
and save it by the name salary in my document folder
4. Write SQL statement that increases the salary of employs by 20% and save it by
name increment in my document
5. Write SQL that delete the record that contain zelalme from employee table and
save it by the name zelalme in my documents folder
6. Take backup HRM data base and save the backup in the MY document s folder.

ORAL QUESTION

1. How do you determining the scope of the data base?


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

You might also like