College - Level - Project Evaluaterpackage

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

College Level Skill Competition - Database Administration 2012 E.

Sector: Economic Infrastructure Development


Sub Sector: ICT
Occupation: Database Administration Level: III

The assessment covers the following units of competence/s:


1. EIS DBA3 01 0811Gather Data to Identify Business Requirements
2. EIS DBA3 02 0811Identify Physical Database Requirements
3. EIS DBA3 03 0811Design a Database
4. EIS DBA3 04 0811Use Basic Structured Query Language
5. EIS DBA3 05 0811Design Program Logic
6. EIS DBA3 07 0811Complete Database Backup and Recovery
7. EIS DBA3 08 0811Create Technical Documentation
8. EIS DBA3 09 0811Model Data Objects

1 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

Project Package
General direction for the candidate
1. Before starting to work on the project please take at least 15 minutes to read all
content of the project so that you could have the detail understanding of the
project.
2. After reading the whole project for some minutes, make sure that you have been
given all the necessary tools, equipment and information, you need to perform
the projects.
3. This Project contains three tasks and further each task is divided in to sub
activities. The combination of all the activities will form the total percent of you
result (100%).
4. For the purpose of your time management for each task maximum time is
suggested, there for manage your time accordingly.

Project Information
Given the necessary tools, equipment and information, the candidate is expected to
perform the following projects.
The assessor should ask oral questions on which she/he is not satisfied by the
candidate’s performance.
Assessment Venue: Well Equipped Assessment Centre or real work place
Total time for all projects 3:30 Hrs

2 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

Project 1: Design, Create and Operate database

Task 1: Design database


Total time for this task: 1:00hours
Project Information: Identify business requirement and Design a Database

Assume that you are working for FTVET Institute as Database Administrator. He /she
is expected to design and implement database for required section.
Read carefully the requirement and complete the subsequent tasks
The Database to be designed and developed for Institute keeps track the following
information:
 Trainee has first name, last name, Trainee id, Sex, date of birth, and address.
 Competency has a Competency title, Competency number, credit hours and
prerequisite.
 A Trainee takes at least one Competency for each semester and earns Grade and
each Competency can be taken by one or more Trainees.
 Instructor has instid,fname,lname,sex, salary and phoneno
 An Instructor can teach one or more Comptencey
Instruction: Under this project you are expected to perform the following task.
1) identify the possible entities and attributes of the organization

Entity Attribute
TRAINEE Trainee_Id First_Name Last_Name Sex DOB
COMPETENCY Competency _no Comp_Title Credit_ hours prerequisite
INSTRUCTOR Ins_ID Fname Lname Salary Phone Deptname

2) Draw Entity Relationship Diagram (ERD) using chen model for the identified
entities using Edrawmax or Microsoft Visio or any available UML drawing tools
And Put cardinality of relationship on the complete diagram .

3 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

3) Identify and develop a database schema and show possible constraint.


Trainee (Trainee_Id,First_Name,Last_Name,sex,DOB,Address)
Instructor (Ins_ID,Fname,Lname,Salary,Phone,Deptname)
Comptencey (Competency _no,Comp_Title,Credit_ hours)
Prerequisite(Pno, Competency_no)
Grade_Report(ID, Competency _no,Trainee ID,Inst_ID,Grade_Letter)

Task 2: Create and Operate database


Total time for this task: 1:30hours
Instructions: based on the providing information below perform the following tasks using MS
SQL server 2005/2008
Task-1: create database
1. Create database by the name FTVET for the information that provided above
create database FTVET
use FTVET
2. Create table with their appropriate property for each table
create table TRAINEE(
Trainee_ID char(30) primary key,
First_Name char(50),
Last_Name char(50),
sex char(7)check (sex in('F','M')),
DOB datetime ,
Address char(30)

4 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

)
create table COMPTENCEY (
Competency_no char(30)primary key ,
Competency_title char(30),
Credit_hours int
)
create table Instructor(
Ins_ID char(30) primary key,
Fname char(30) ,
Lname char(30),
Salary money,
Phone_no varchar(100),
deptname char(30)
)

create table PREREQUISITE(


Pno int primary key identity(1,2),
Competency_no char(30) foreign key references COMPTENCEY(Competency_no)
on update cascade on delete cascade
)

create table Grade_Report(


ID int primary key identity(1,1),
Competency_no char(30) foreign key references COMPTENCEY(Competency_no)
on update cascade on delete cascade,
Trainee_ID char(30) references Trainee(Trainee_ID)on update cascade on
delete cascade,
Ins_ID char(30)references Instructor(Ins_ID)on update cascade on delete
cascade ,
Grade_Letter char(30)
)

3. Create appropriate relationship.

5 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

4. Insert the following sample data for each table as follows


Table: TRAINEE
Trainee ID First Name Last Name Sex Date of Address
birth
T001 Makbel Haile M 19-04-1981 Mekele
T002 Gemche Assay M 15-05-1988 Adama
T003 Helen Gere F 10-07-1978 Bahirdar
T004 Selam Tewele F 03-04-190 Hawassa

insert into TRAINEE values('T001','Makbel','Haile','M','9-04-1981','Mekele')


insert into TRAINEE values('T002','Gemche','Assay','M','10-07-1978','Adama')
insert into TRAINEE values('T003','Helen','Gere','F','10-07-1978','Bahirdar')
insert into TRAINEE values('T004','Selam','Tewele','F','10-04-
1990','Hawassa')
Table: COMPTENCEY
Competency no Competency title Credit hours
C001 Basic SQL 4
C002 Design Database 3
C003 Model Data Object 4
C004 C++ 3

insert into COMPTENCEY values ('C001','Basic SQL',4)


insert into COMPTENCEY values ('C002','Design Database',3)
insert into COMPTENCEY values ('C003','Model Data Object', 4)

insert into COMPTENCEY values ('C004','C++',3)

Table: Grade Report


Competency no Trainee ID Inst_ID Grade_Letter
C001 T001 Ins001 A
C002 T002 Ins002 B
C003 T003 Ins003 C
C004 T004 Ins004 D
insert into Grade_Report(Competency_no,Trainee_ID,Ins_ID,Grade_Letter)
values('C001','T001','Ins001','A')
insert into Grade_Report(Competency_no,Trainee_ID,Ins_ID,Grade_Letter)
values('C002','T002','Ins002','B')
insert into Grade_Report(Competency_no,Trainee_ID,Ins_ID,Grade_Letter)
values('C004','T003','Ins003','C')
insert into Grade_Report(Competency_no,Trainee_ID,Ins_ID,Grade_Letter)
values('C004','T004','Ins004','D')

6 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

Table: Instructor
Ins_ID Fname Lname Salary Phone_no Deptname
Ins001 Gere H/mikale 10000 +2519124560 ICT
Ins002 Alemayehu Degeney 12000 +2519135068 ICT
Ins003 Leleti Hagos 8695 +2519102350 ACCOUNTING
Ins004 Tolosa Desta 7070 +2519304580 Marketing

insert into Instructor


values('Ins001','Gere','H/mikale',10000,'+2519124560','ICT')
insert into Instructor values
('Ins002','Alemayehu','Degeney',12000,'+2519135068','ICT')
insert into Instructor values
('Ins003','Leleti','Hagos',8695,'+2519102350','ACCouunting')
insert into Instructor values
('Ins004','Tolosa','Desta',7070,'+2519304580','Markting')

Table: PREREQUISITE
Pno Competency _No
1 C001
3 C002
5 C003
7 C004

insert into PREREQUISITE (Competency_no)


values('C001')

insert into PREREQUISITE (Competency_no)


values('C002')
insert into PREREQUISITE (Competency_no)
values('C003')
insert into PREREQUISITE (Competency_no)
values('C004')

7 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

Task 3: Perform Database Operations


Total time for this task: 1:00hours
1. write query that return the list of departments which have more than 1 Instructor.
SELECT deptname, COUNT(*)as 'count'
FROM Instructor, Grade_Report
WHERE Instructor.ins_id = Grade_Report.ins_id
GROUP BY deptname
HAVING COUNT(*)>1;

2. Write SQL Query that can display the given result set.

Select Instructor.ins_id,Instructor.Fname'Ins_Name',COMPTENCEY.Competency_no,
Trainee.Trainee_ID,upper(Trainee.First_Name)AS Trainee_Name
,Grade_Report.Grade_Letter
from Instructor,Trainee,Grade_Report,COMPTENCEY
where Instructor.ins_id =Grade_Report.ins_id and
Trainee.Trainee_ID=Grade_Report.Trainee_ID and
COMPTENCEY.Competency_no=Grade_Report.Competency_no and Trainee.sex='M'
and Grade_Report.Grade_Letter='A'
3. Create a query to update the trainee address for all address with "shere" those who
score grades'A' ,'B' or 'C' and who learn in Design database competency .

update Trainee set address='shere'


where Trainee.Trainee_id in( select Trainee.Trainee_id from Trainee as T,
Grade_report as g, COMPTENCEY as c
where (T.Trainee_id=g.Trainee_id and g.competency_no=c.competency_no) and
g.Grade_letter in('A','B','C')
and c.Competency_title='Design database' )

4. Write a query to display the trainee name for all tarinees those who score grades ‘A’.
SELECT First_name from Trainee as T, GRADE_REPORT as g
where T.Trainee_id=g.Trainee_id and g.Grade_letter='A';

5. Write a query to display the Trainee_id and name for all Trainee who are female
with any trainee whose name contains a ‘L’.

select Trainee_id ,First_name from trainee where sex='F' and


First_name like '%L%';

8 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

6. write query that displays department name with their total salary whose total salary
is more than 10000.
SELECT Instructor.deptname, SUM(salary) as Total_salary
FROM Instructor
GROUP BY deptname
HAVING SUM(salary) > 10000;

7. List the no of Instructor and avg salary for each dept.

select count(ins_id) as count, avg(salary) as avereage


from Instructor group by deptname

8. Prepare a complete backup on your desktop by the name FTVET_backup under the
folder FTVET.
backup database FTVET
to disk='C:\Users\maki\Desktop\FTVET_backkup.back'

9.Write a command to restore FTVET database after failuer .


Use master
drop database FTVET

restore database FTVET


from disk='C:\Users\maki\Desktop\FTVET_backkup.back'

9 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

Observation Checklist
Candidate’s Name: ___________________________________________

Assessor’s Name: ___________________________________________

Occupation Database Administration

Level

Date of Assessment:

Time of Assessment:

Instructions for the Assessor

 Observe the candidate.


 Describe the assessment activity and the date on which it was undertaken
 Place a tick in the box to show that the candidate completed each aspects of the activity to
the standard expected in the enterprise.
 Complete the feedback sections of the form.
OBSERVATION

During the demonstration of skills, did the candidate: Weight Result


Project 1:Design, create and perform Database
Task 1: Design database 40%
Identifies the possible Entities 5
Identifies the possible attributes 5
Draw Entity relationship Diagram(ERD) using chen model 15
identify and develop a database schema 15

Task 2:Create and Operate database 20%


Create database by the name FTVET 1
Create five tables with the name TRAINEE, INSTRACTUOR
5
,COMPTENCEY , Grade Report and PREREQUISITE
Assign appropriate data type for each attribute 2
Assign appropriate constraint Identity,PK, FK and Check for the tables 3
Create relationships between the five tables 4
Insert the Given data for each the five tables 5
Task 3: Perform Database Operations 40%
1. Create a query that displays data by joining the required tables and using 5
aggregate function.
2. Create a query that displays data by joining the required five tables 5

10 Prepared by Federal TVET Agency and Institute


College Level Skill Competition - Database Administration 2012 E.C

3. create query to update the given data using sub query 5


4. Create a query that displays data by joining the required tables 5
5. Create a query that displays data by using aggregate function with group 5
by and having clause.
6. Create a query that displays data by using like operator 5
7. Create a query that displays data by using aggregate funcation. 5
8. Use backup statement to back up the database in desktop 2
9. Drop database FTVET and Restore the dropped database from backup 3
Grand Total result 100%
Evaluators Signature
1.________________________ ___________________
2.________________________ ___________________
3.________________________ ___________________

Competitor (ID)_________________ Signature_____________________

11 Prepared by Federal TVET Agency and Institute

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy