Professional Documents
Culture Documents
Database Administration Level IV Practical Exam 2
Database Administration Level IV Practical Exam 2
Given the necessary materials, supplies and information the candidate is expected to perform the
following projects.
Scenario
XYZ College needs to store information of its student, having (stud ID, FirstName, LastName,
Age, Sex) taking a course (CourseCode, CourseName, Credit hrs) in different Department with
(DepartmentID, DeptName, Location).
Case1: Many students can take many courses and many courses can be taken by many students.
Case2: A student can enrolled at one department at a time and a department can have many
students.
Case3: Course is given by a single department while a department can have many courses.
Project 1:
Time:2 hrs.
Instruction:-Suppose you are a database administrator in an XYZ college and assigned to create a
database that manages students, courses and departments information. You are expected to
perform the following tasks based on the above scenario.
Task 2: Identify all entities, Attributes and Relationship to design the database.
Task 3: Normalize the tables to its suitable form and Draw ER Diagram on Visio by Crows foot
model then save each by name you like.
Task 4: Create a database on access by using tables as it is indicated below and save it by the
name Student Record. (Note: Show the relationship correctly).
Time: 45 min
Student Table:
Course Table:
Department Table:
Task 5: Import the above table which is created in Access to a SQL 2008 database and save it as
StudentRecord2.
Project 2:
Instruction:-Using the database you have created in project1, you are expected to perform the
following tasks.
Task 1: By using Visual Basic, Design an interface to insert data to Department Table and
Delete using DeptID.
Note that: - (Use the following data to insert records).
a. Write a query that displays the average student age, the youngest and the oldest at
the same time with the name AvgAge, YoungestAge, and OldestAge Respectively.
b. Write a query that displays a student first and last name with the course name and
credit hours of the last two records for those only takes FM course.
c. Write a query that adds 10 to Credit hrs. if it is less than 60.
Project 3:
Time: 45 min
Instruction: - On the database you have created in project 1, you are expected to perform
the following tasks.
a) Configure the authentication method of the server to be mixed Mode (SQL server and
Windows).
b) Create SQL login account by name Ambo and Password 1223.
c) Create a role called DBA4 and add the user Ambo in this role.
d) Deny SELECT permission for the role DBA4 on the course table.
a) Write a query that take full database back and save it on my document by your name and
execute.
b) Delete the original Database named by StudentRecord.
c) Write a query that recovers the deleted database and check whether your database
recovered correctly.
Answer:
Project 1:
Task 1:
Note: The candidate should have to list SDLC in his his/her plan such as:
Requirement
Design
Testing
Task 2:
The candidate should have to identify Student, Course, and Department and have to change the
many to many relationships between student and course in to one to many appropriately and
draw using.
Task 3:
The candidate should have to normalize the table to its best normal form and have to sketch the
ER- Diagram on Visio using Crow’s foot model as follows:
Department
PK DeptpID
DeptName
DeptLocation
Task 4: The candidate is expected to create the database , tables and should have to create a
relationship then insert the given data on MS Access.
Stud_course
Stud_course
Studid
coursecode
Student
Studid
Course
studFirstName
Coursecode
StudLastName
Coursename
Sex
creditHrs
Age
deptid
deptid
Department
DeptID
DeptName
Task 5: The candidate is expected to import database created by access to SQL server as it is on
DeptLocation
MS Access with all credentials.
Project 2:
Task 1: The candidate should have to create an interface with VB to insert data to department
and have to delete a record by using deptid.
a) Write a query that displays the average student age, the youngest and the oldest at the same
time with title name Average_age, YoungestAge and OldestAge Respectively.
From Student
b) Write a query that displays a student first and last name with the course name and credit
hours of the last two records for those only takes FM courses.
Update course
Set credithrs=credithrs+10
Where credithrs<60