FFFFF

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 21

Database Administration L 3 COC Project

Project Information One


Given the necessary tools, equipment and information, the candidate is expected to perform
the following 4 projects.
The assessor should ask oral questions on which s/he is not satisfied by the candidate’s
performance
Assessment Venue: Well Equipped Assessment Centre
Total time for all projects: 4 Hrs
Project 1: Designing a Database of Registration Record System for ABC
Technical College
Instruction: Under this project the candidate is expected to perform the following tasks based
on the information provided below.
Time for project: 1 30 Minutes
1. Identify the basic data object categories or entities with their own attributes or
properties.
2. Build an ER Diagram for the above information of the ABC Technical College.

An ABC Technical College wants to store all its information regarding the student’s
registration every term, and you as a database developer requested to design this database for
the college. This student record management system must store information about the
students and the courses enrolled. Moreover, whenever a student enrols in a course in a
specific Academic Year and Semester, the Student will have a grade for the course.

Competencies covered:
ICT DBA3 01 0811 Gather Data to Identify Business Requirements
ICT DBA3 03 0811 Design a Database
ICT DBA3 09 0811 Model Data Objects
Project 2: Install Application Software
Instruction: Under this project the candidate is expected to create a database and tables on the
information provided below.
Time for project: 50 Minutes
Prepare your machine for your project by Installing MS-SQL Server 2008
Competencies covered:
ICT DBA3 02 0811 Identify Physical Database Requirements
Project 3: Perform database operation
Instruction: Under this project the candidate is expected to create a database and tables on the
information provided below.
Time for project: 1: 40 Minutes

AKPC Firaol Mengesha


Database Administration L 3 COC Project

Task I: Create a database called “mydatabase”, and in your database create a table named
employee having fields first_name, last_name and age. Assume the maximum length of
characters for the fields ‘first_name’ and ‘last_name’ is 20 and both fields couldn’t be null.
For the age character give it appropriate data type and it could be null.
Task II: In your mydatabase database, create a table named department having fields
dep_id and dep_name. Assume the maximum length of characters for the fields ‘dep_id’ and
‘dep_name’ is 5 and 40 respectively and both fields couldn’t be null. Make dep_id the
primary key for the table.
Task III: Assume you have just started a new company. It is time to hire some employees.
You will need to create a table that will contain the following information about your new
employees: firstname, lastname, title, age, and salary.
Task IV: for already created table ‘employee’ in task I, Write SQL statements that could:
1) Add one more additional field emp_id of maximum length of characters 5 and could
have a possibility to be null.
2) Modify the maximum length of characters for the field first_name to be 15.
Competency covered
ICT DBA3 04 0811 Use Basic Structured Query Language
ICT DBA3 05 0811 Design Program Logic
ICT DBA3 06 0811 Test Physical Database Implementation
ICT DBA3 07 0811 Complete Database Backup and Recovery
ICT DBA3 08 0811 Create Technical Documentation
Answer key
Project 1: Designing a Database of Registration Record System for ABC Technical
College
Task 1- Answer:
Entities with their Attributes –
Students (Id, Name, Department, Date of Birth, Age, GPA)
Course (Course_Id, Name, Credit)
Associative Entity-
Enrolled_In (Academic_Year,Grade,Semester)

Note: Age and GPA are derived attributes


Academic_Year,Grade,Semester are associative attributes

AKPC Firaol Mengesha


Database Administration L 3 COC Project

Task 2- Answer:
Possible ER diagram

 Note: logical clarification on the design is possible


Project 2: Install Application Software
MS-SQL Server 2008 is installed the candidates PC
Project 3: Perform database operation
Task I
Answer:
USE mydatabase
CREATE TABLE employee
(first_name varchar(15) NOT NULL,
last_name varchar(20) NOT NULL,
age tinyint);
Task II
Answer:
USE mydatabase
USE mydatabase
CREATE TABLE department
CREATE TABLE department
(dep_id varchar(5) NOT NULL,
OR (dep_id varchar(5) NOT NULL PRIMARY KEY,
dep_name varchar(40) NOT NULL,
dep_name varchar(40) NOT NULL);
PRIMARY KEY (dep_id));
Task III
Answer:
AKPC Firaol Mengesha
Database Administration L 3 COC Project

USE mydatabase
CREATE TABLE myemployees
(firstname varchar(30), lastname varchar(30), title varchar(30), age tinyint, salary smallmoney);
Task IV
Answer:
A) USE mydatabase ALTER TABLE employee ADD emp_id varchar(5)
B) USE mydatabase ALTER TABLE employee ALTER COLUMN first_name
varchar(15)

Project Information Two


Given the necessary tools, equipment and information, the candidate is expected to
perform the following 4 projects.
The assessor should ask oral questions on which s/he is not satisfied by the
candidate’s performance
Assessment Venue: Well Equipped Assessment Centre
Total time for all projects: 4 Hrs
Project 1: Designing a Database of Human Resource
Record System for Microwave Corporation
Instruction: Under this project the candidate is expected to perform the following
tasks based on the information provided below.
Time for project: 1 30 Minutes
Competencies covered:
ICT DBA3 01 0811 Gather Data to Identify Business Requirements
ICT DBA3 03 0811 Design a Database
ICT DBA3 09 0811 Model Data Objects
Assume that you are working for ABC Company as Database Administrator. The
company has several departments. Each department has a supervisor and at least
one employee. Employees must be assigned to at least one, but possibly more
departments. At least one employee is assigned to a project, but an employee may
be on vacation and not assigned to any projects. The important data fields are the
names of the departments, projects, supervisors and employees, as well as the
supervisor and employee number and a unique project number.
As Database Administrator of the Company you are expected to:
3. Identify the basic data object categories or entities with their own attributes or
properties.
AKPC Firaol Mengesha
Database Administration L 3 COC Project

4. Build an ER Diagram for the above information of the Company


Project 2: Install Application Software
Instruction: Under this project the candidate is expected to create a database and
tables on the information provided below.
Time for project: 50 Minutes
Competencies covered:
ICT DBA3 02 0811 Identify Physical Database Requirements

Prepare your machine for your project by Installing MS-SQL Server 2008
Project 3: Perform database operation
Instruction: Under this project the candidate is expected to create a your own
database and tables on the information provided below.
Time for project: 1: 40 Minutes
Employee table
Emp_ID Emp_Fname Emp_Lname Sex Salary
E001 Kebede Asfaw M 2,680
E002 Aster Lemma F 3,100
E003 Tigist Afework F 1,890
E004 Chala Lemi M 5,250
Customer table
Cust_Id Cust_Fname Cust_Lname Cust_Address
C001 Abebe Taye Adama
C002 Chaltu Gemmechu Wonji
C003 Tesfaye Getachew Asella
C004 Bikila Alemu Modjo
Task 1: Use Basic Structured Query Language
Time allotted: - 1:00 hrs
Instruction: Under this task you are expected to perform the following queries on
the database created on project 3
Competency covered
ICT DBA3 04 0811 Use Basic Structured Query Language
ICT DBA3 05 0811 Design Program Logic
ICT DBA3 06 0811 Test Physical Database Implementation
ICT DBA3 07 0811 Complete Database Backup and Recovery
ICT DBA3 08 0811 Create Technical Documentation

AKPC Firaol Mengesha


Database Administration L 3 COC Project

A. Write a query that Insert the following record in to Employee table and save it
by the name Employee creating a folder by your name on the Desktop
Emp_Id=005
Emp_Fname=Tsegaye
Emp_Lname=Abebe
Sex=M
Salary=3,200
B. Update the salary of Kebede to 3,000 and save it by the name Kebede and
save it in your folder.
C. Write SQL statement that counts the total number of Female and Male
Employees and save it by the name Count in your folder.
D. Write SQL statement that displays all records that contains Cust_Id and
Cust_address whose customer address starts with the letter A and save it by
the name Customer Address in your Folder.
E. Delete the record from Customer table whose Cust_Id is C003 and save it by
the name Delete in your folder

Task 2: Perform Database Backup and Recovery.


Time allotted: - 40 minutes
Instruction: Under this task you are expected to perform database backup and
recovery based on the activities provided below.
A. Take Backup of your database and save the backup file in Local D:\. By
the name DB_Backup.
B. Restore the database from your backup location created previously.

Answer key
Project 1: Designing a Database for ABC Company
Task 1- Answer:
Entities-with their Attributes (database schema)
Department: Department Name (Dep_Na), Department (Dep_Na)
Employee: Employee Number (Emp_Nu), Employee Name (Emp_Na)
Supervisor: Supervisor Number (Sup_Nu), Supervisor Name (Sup_Na)
Project: Project Name (Proj_Na), Project Number (Proj_Nu)
Associative Entity-
AKPC Firaol Mengesha
Database Administration L 3 COC Project

Is_Assigned (Date_Assigned)
Works_On (Date_Begin)
Note: Date_Assigned , Date_Begine are associative attributes
Task 2- Answer:
Possible ER diagram

 Note: logical clarification on the design is possible

Project 2: Install Application Software


MS-SQL Server 2008 is installed the candidates PC
Project 3: Perform database operation
Task 1: Use Basic Structured Query Language
A.insert into Employee values('E005','Tsegaye','Abebe','M',3200);
AKPC Firaol Mengesha
Database Administration L 3 COC Project

B. update employee set salary=3000 where Emp_Fname='Kebede'


C. Select count(Emp_Id)as no,sex
from Employee
group by sex
D.Select Cust_ID, Cust_Address
From Customer
Where Cust_Address like 'A%'
E.Delete From Customer
Where cust_Id='C003'
Task 2: Perform Database Backup and Recovery.
A. BACKUP DATABASE myDatabase TO DISK = 'D:\db_backup.BAK'
B. RESTORE DATABASE myDatabase FROM DISK='D:\db_backup.BAK'
Project Information Three
Task 1: design ER diagram for xyz company database

Time: 40 mints

The requirement for xy database includes the following.

 The xyz is organized into departments. Each department has a unique name,a
unique number. A department may have several locations.
 Each department controls a number of projects.
 Each project has a unique name, unique number and depname
 The database also stores Employee’s ID, Name, salary, gender, Birth Date and
department name. each employee works for one department but may work on
several projects and each project can have many employees
Instruction: under this task you are expected to perform the following activities based on the
information provided.
1. Install Microsoft office Visio 2003/7
2. Design ERD for blue nile college database based on the above given
requirements on Microsoft office Visio 2003/7
Task 2: design flowchart

Time: 20 mints

The following pseudo code describes an algorithm which accepts a number form the
keyboard and calculates the sum of numbers between 1 and N

Start

Sum =0;

Count =1;

AKPC Firaol Mengesha


Database Administration L 3 COC Project

Display “input value for N”;

Accept the input value for N

While (count<=N)

Sum=sum+count;

Count =count +1;

Display “the sum is” sum;

End

Instruction: under this task you are expected to perform the following activities based on the
information provided.

 Design the corresponding flowchart for this pseudo code


Project 2: install DBMS (SQL server 2008) software

Time: 2hrs

Instruction: you are expected to perform the following three tasks based on information
provided.

Task 1: install sql server 2008 software.

Instruction: you are expected to perform the following tasks based on information provided.

 Configure with mixed mode


 Install all features of sql server
Task 2: design a simple database for Gonder Blue Nile College

Suppose you are a database administrator in gonder blue Nile College and assigned to create
a database that manages the students, courses and students grade report information.

Instruction: under this task you are expected to perform the following activities based on the
information given.

A. Create a database named gonderbnc on sql server 2008


Under the gonderbnc database, create the tables by using the information given.

Table 1: student

Field Name Type Size Default Constraint


value
stID Varchar 12 --------- Primary key
Name Varchar 35 -------- Not null
Sex Char 6 Female Male or female
Birth date Datetime ---- ------ Not null
AKPC Firaol Mengesha
Database Administration L 3 COC Project

Section Char 6 ------ ------


DepName Char 40 ----- Not null
Table 2: course

Field Name Type size Constraint


Corsecode Varchar 10 Primary key
Coursetitle Char 40 Not null
Credit Int -----

Table3: grade_report

Field Name Type Size Constraint


stID Varchar 12 Primary key, foreign key
Corsecode Varchar 10 Primary key, foreign key
Grade Char 5 A,B,C,D,F

Relationship between the three tables


B. Add new column named “email” as type char with size 20 to student table
C. Insert the sample records into the table as shown
Student

stID Name Sex Birthdate Section depName Email


Bnc101 Tomas M 2/02/70 Room Database tom@gmail.com
2
Bnc102 Sable F 5/03/90 Room Database sable@yahoo.com
2
Bnc104 Kaki M 20/06/90 Room Electrical kaki@gmail.com
8
Course

corsecode coursetitle Credit


Ict1001 Calculus 90
Ict1002 Sql 100
Ict1003 Modeling 89
Grade_report

Task 3: develop a query

stID Corsecode Grade


Bnc101 Ict1001 B
Bnc101 Ict1002 A
Bnc102 Ict1001 B
Bnc102 Ict1002 A

Instruction: under this task you are expected to perform the following.

AKPC Firaol Mengesha


Database Administration L 3 COC Project

1. Develop sql query that retrieve the names of all students who score grade “B” and
save it by the name result in D: drive
2. Develop sql query that retrieves stID and name of all female students taken the course
title “database” and save it by the name “database” in desktop
3. Write sql statement that retrieves all student who score grade “A” in database
department and sort them descending by their depName and ascending by their name
and then save it by the name “ordered” in D: drive
4. Write sql statement that creates a backup for gonder bnc database and save the
backup with the backup name “gonderbncbackup” in D: drive
5. Develop sql statement that changes the section into “room9” of all students who score
grade “A” or “B” for the course title “database”
6. Assume that gonderbnc database was dropped accidentally. Write sql query that
recover dropped database form backup.

Project Information Four


Given the necessary tools, equipment and information, you are expected to perform
the following two projects.

The assessor should ask oral questions on which s/he is not satisfied by yours
performance.

Assessment Venue: Well Equipped Assessment Centre or real work place


Total time for all projects: 4:30 hours
Project 1 Identify business requirement and design a database
Total time for the project: 2:00 hours

Project information: identify business requirement of the organization. Identify


entities, attributes, relationship and design the database using ER
diagram

Competencies covered:
1. EIS DBA3 01 0811 Gather Data to Identify Business
Requirements
2. EIS DBA3 02 0811 Identify Physical Database requirements
3. EIS DBA3 03 0811 Design a Database
4. EIS DBA3 05 0811 Design Program Logic
5. EIS DBA3 08 0811 Create Technical Documentation
6. EIS DBA3 09 0811 Model Data Objects
AKPC Firaol Mengesha
Database Administration L 3 COC Project

Case scenario for the project


Addis Ababa Poly Technique College needs a database to handle its trainee
records. You asked to analyze and design the database. The college’s trainee record
management activities include:

Registering the trainee personal information, department information, trainer


information, competency information, competencies given by a department,
competencies attended by each trainee, and competencies given by a trainer.

In order to perform these activities the college needs to keep records of:

1. Trainees identified by their id, full name, sex, birth date, department, year of
entry to the college
2. Trainers identified by their id, full name, sex, educational level, field of study,
and experience, department in which the trainer is working
3. Departments (like ICT, Manufacturing, Construction, Drafting, …) identified by
their name, sector, and department establishment date
4. Competencies identified by unit code, title, total hours to complete the
competency, competency’s owner department
5. Trainee’s competency records which contain records of competencies taken
by trainee, the trainer who gives the competency to the trainee, and whether
the trainee’s result is satisfactory or unsatisfactory.
Instruction: - Based on the above scenario you are expected to perform the following
activities.

 Identify Entities, Attributes, Primary Keys (PK) and Foreign Keys (FK).
 Draw entity relationship(ER) diagram for the identified entities using Ms
Visio application

AKPC Firaol Mengesha


Database Administration L 3 COC Project

has dept
id
N
Name
co
Trainee
sector mp own entryYear
Uni erD 1
t ept sex
1 dBirth
openingDate

etency
Comp
total
Department
Hr has
unit
1 1 Titl
deptName owns e
1 N

has has

experience
N compUnitCode

1 N N
fieldOf Trainer
Study has
N CompetencyRecord
educLeve trainerID
l Name
sex id dept isSatisfactory
traineeID

AKPC Firaol Mengesha


Database Administration L 3 COC Project

Project 2: Create and manipulate database


Total time for the project: 2:30 hours
Competencies covered:
1. EIS DBA3 04 0811 Use Basic Structured Query Language
2. EIS DBA3 06 0811 Test Physical Database implementation
3. EIS DBA3 07 0811 Complete Database Backup and Recovery

EmpName DptName

EmpID

Employee Department
N 1
BDate
Sex has
DptID

owns

1 N

Job_Position
Salary

RequiredExp
erience

JobTitle
JobID

Instructions: Under this project you are expected to create a database Based on
the ER diagram of a registrar system database given above by
performing the following activities using MS SQL server 2005

1. Create database by the name HUMAN_RESOURCE


2. Create the tables of database HUMAN_RESOURCE having the
appropriate data type, primary key and foreign key
3. Create appropriate relationship

AKPC Firaol Mengesha


Database Administration L 3 COC Project

4. Add the sample data in to the tables.


5. Create a query that displays employee name, job title, salary, and
department name of female employees.
6. Update the salary of all cashiers by adding 500 Birr.
7. Select employees’ id, name, department name, and salary and display the
result in ascending order of salary.
8. Display each department’s name along with its number of employees.
9. Delete the record of employees from employee table whose salary is less
than 3000 Birr.
10. Backup the database on a flash disk using SQL statement.
11. Restore the Database from the backup.
Acceptable answer For the assessor:
Recommended entities with attributes (the candidate should identify at least 5 of
the following entities with their attributes. The primary keys of each entity are bold
and underlined. The foreign keys are italic and underlined)

Trainee (id, fullName, sex, dateOfBirth, department, yearOfEntry, …)


Trainer (id, fullName, sex, educationLevel, fieldOfStudy, experience, department, …)
Department (departmentName, sector, OpeningDate, …)
Competency (compUnitCode, unitTitle, totalHour, ownerDepartment, …)
CompRecord (compUnitCode, traineeID, trainerID, isSatisfactory, …)

AKPC Firaol Mengesha


Database Administration L 3 COC Project

has dept
id
N
Name
co
Trainee
sector mp own entryYear
Uni erD 1
t ept sex
1 dBirth
openingDate

etency
Comp
total
Department
Hr has
unit
1 1 Titl
deptName owns e
1 N

has has

experience
N compUnitCode

1 N N
fieldOf Trainer
Study has
N CompetencyRecord
educLeve trainerID
l Name
sex id dept isSatisfactory
traineeID

AKPC Firaol Mengesha


Occupational Code: ICT Database Administration L 3 COC

Project 2: Create and manipulate database


Total time for the project: 2:30 hours

Instructions: In this project the candidate is expected to create a database by


reading the provided ER diagram of a registrar system database

Competencies covered:
EIS DBA3 04 0811Use Basic Structured Query Language
EIS DBA3 06 0811Test Physical Database implementation
EIS DBA3 07 0811Complete Database Backup and Recovery

EmpName DptName

EmpID

Employee Department
N 1
BDate
Sex has
DptID

owns

1 N

Job_Position
Salary

RequiredExp
erience

JobTitle
JobID

Firaol Mengesha
Occupational Code: ICT Database Administration L 3 COC

Instructions: Based on the ER diagram given above, perform the following activities
using MS SQL server 2005

12. Create database by the name HUMAN_RESOURCE


13. Create the tables of database HUMAN_RESOURCE having the
appropriate data type, primary key and foreign key
14. Create appropriate relationship
15. Add the following sample data in to the tables.
16. Create a query that displays employee name, job title, salary, and
department name of female employees.
17. Update the salary of all cashiers by adding 500 Birr.
18. Select employees’ id, name, department name, and salary and display the
result in ascending order of salary.

19. Display each department’s name along with its number of employees.

20. Delete the record of employees from employee table whose salary is less
than 3000 Birr.
21. Backup the database on a flash disk using SQL statement.
22. Restore the Database from the backup.
Acceptable answer For the assessor:
The candidate expected to do the following

3. Relationship

4. Add records
insert into Department(DptName)
values('Human Resource')
insert into Department(DptName)
values('ICT')
insert into Department(DptName)
values('Finance')

insert into Job_Position(JobTitle, Salary, RequiredExperience, DptID)


values('Junior Software Expert', 3400, 2, 2)
insert into Job_Position(JobTitle, Salary, RequiredExperience, DptID)
values('Network Administrator', 8700, 8, 2)
insert into Job_Position(JobTitle, Salary, RequiredExperience, DptID)
values('Casher', 2000, 3, 3)

Firaol Mengesha
Occupational Code: ICT Database Administration L 3 COC

insert into Job_Position(JobTitle, Salary, RequiredExperience, DptID)


values('Senior Accountant', 5000, 5, 3)
insert into Job_Position(JobTitle, Salary, RequiredExperience, DptID)
values('Junior Expert', 2800, 0, 1)

insert into Employee(EmpName, Sex, BDate, JobID)


values('Habtamu Girma', 'M', '8/9/1980', 1)
insert into Employee(EmpName, Sex, BDate, JobID)
values('Hana Teferi', 'F', '7/6/1979', 2)
insert into Employee(EmpName, Sex, BDate, JobID)
values('Jemal Ahmed', 'M', '1/2/1986', 3)
insert into Employee(EmpName, Sex, BDate, JobID)
values('Nigusse Woldu', 'M', '10/8/1984', 4)
insert into Employee(EmpName, Sex, BDate, JobID)
values('Meseret Birara', 'F', '9/10/1983', 5)
5. Create Query
select EmpName, JobTitle, Salary, DptName
from Employee as E, Job_Position as J, Deparuse Human_Resource
tment as D
where E.JobID=J.JobID and J.DptID=D.DptID and sex='F'
6. Update
update Job_Position
set Salary = (Salary + 500)
where JobTitle='Casher'
7. Sort
select EmpID, EmpName, DptName, Salary
from Employee as E, Job_Position as J, Department as D
where E.JobID=J.JobID and J.DptID=D.DptID
order by Salary
8. Use aggregate function
select D.DptName, count(E.EmpId)
from Department as D, Employee as E,Job_Position as J
where E.JobID=J.JobID and J.DptID=D.DptID
group by D.DptName
9. Delete
delete from Employee
where EmpID in (select EmpID
from Employee as E, Job_Position as J
where E.JobID=J.JobID and Salary < 3000)

10. Take database backup


Step: 1. Right click on the Created Human_Resource database and select on
tasksbackup.
 Back up Database Dialog box opens.
Step: 2. From the Back up type option select ‘Full’.
Step: 3. Under Destination click ‘Add’ button
Select Back up Destination dialog box opens.
Step: 4. Browse the flash disk, write the file name and click ok button.
Step: 5. On the Back up Database dialog box click ‘Ok’ and finish.

11. Restore database


Step: 1. Right click on the Created Human_Resource database and select on
tasksRestoreDatabase.
 Restore Database Dialog box opens.

Firaol Mengesha
Occupational Code: ICT Database Administration L 3 COC

Step: 2. Under ‘Source for restore’ select ‘From Device’ option.


Step: 3. Click Browse
’Specify Backup’ Dialog box opens.
Step: 4. Click Add
’Locate back up file’ Dialog box opens.

Step: 5. Browse the back up file from the flash disk and click on ‘Ok’ button.
Step: 6. Click on ‘Ok’ button
Step: 7. Under ‘Select Back up sets to restore’ click on the check box in front of
the appropriate back up set.
Step: 8. Click Ok.

Firaol Mengesha
Occupational Code: ICT Database Administration L 3 COC

Firaol Mengesha

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