All in ONE DBA Level 4
All in ONE DBA Level 4
Instruction: Under this task you are expected to perform the following activities based information provided.
1. There are two tables that are not normalized. The first table contains information about student and course. The
second table contains information about employees and projects. Choose one of them and write to Microsoft
office Excel and save with Excel Table.
Table 1:
Task 2: Open the MS access application software and make the normalization process for the table.
Create table
Create the relationship b/n the tables
Insert the given data correctly
Exercise 3:
1. Create the following student and course information on Microsoft Excel by using table as it is indicated
below and save it by the name registration1.
2. StudID FirstName LastName courseId coursetitle Credit Import the
above
Hour
table which
is 001 Abebe Mekuria 01 SQL 4 created in
001 Abebe Mekuria 03 VB6 2 Excel to a
006 Lemma Alemu 02 C++ 3 Microsoft
006 Lemma Alemu 07 IP 2 Access
008 Chane Kebede 01 SQL 4 database
and 010 Almaz Belay 01 SQL 4 save it as
010 Almaz Belay 05 PHP 5
010 Almaz Belay 08 Java 4
014 Dereje Tamiru 04 Oracle 3
016 Alem Kebede 06 Cisco 4
registration2.
Normalize the imported table registration2 in its Appropriate Normal Form and save the derived tables by
any name you like.
3. Create a relationship for the normalized tables and save it by the name myrelationship.
Exercise 4:
Consider the following employee statistics table for IBM database that is used to keep track of employee’s statistics.
1. Retrieve the name of all employees whose Fname starts with ‘B’.
2. Write SQL statements that displays Empid and salary of employees.
3. Display the average salary of female employees.
Exercise 5:
Title: Create a table using SQL
Time allotted for the project:-1hr
1. Write SQL commands for SPORTS table
Table: SPORT
2. Display the names of the students who have grade ‘C’ in either Game1 Or Game2 or both.
3. Display the number of students getting grade ’A’ in cricket.
4. Display the name of the student who has same game for both Game1 and Game2.
5. Display the games taken up by the students ,whose name starts with T.
6. Assign a value 200 for marks for all those who are getting grade ‘B’ or grade ‘A’ in both Game1& Game2.
7. Arrange the whole table in the alphabetical order of name.
Exercise 6: Manage database access on MS SQL 2008.
Task 1:
1. On IBM database, create login account named by ‘ibmlog’ with password=’1234’.
2. Create user ‘ibmuser’ for previous login.
3. Create role ‘ict’ and add the user to this role.
4. Grant select and insert privilege to ‘ict’ role on employee table.
5. Grant select privilege to ‘ict’ role on columns ‘fname’ and ‘sex’ only.
6. Deny insert from ict role.
Task 2: Give permission for your database
Exercise 7:
1. Configure the authentication method of the server to be Mixed Mode (SQL Server and Windows)
2. Create SQL login account by name coc and password 1234.
3. In the Northwind database, create a user called coc by the login account coc that is already created on
question #2.
4. In the Northwind database, create a role called ICT and add the user coc in this role.
5. Deny SELECT permission for the role ICT on the Orders table.
Exercise 8:
Consider the following Department table for ABC database that is used to keep track of departments.
a. Atomicity c. Consistency
b. Durability d. Isolation
ColumnA
14. On one task insert a new raw or delete is cord from exiting P. Role
Q. Cascade delete
table
R. Update delete
15. That occurs when the two tasks path in the same way
S. Encryption
T. Decryption
U. Aggregate function
1. What part of object-oriented technology defines super class and subclass relationships?
A. Inheritance
B. Scalability
C. Encapsulation
D. Polymorphism
2. Data encryption techniques are particularly useful for
A. Reducing storage space requirements
B. Improving data integrity
C. Protecting data in data communication
D. Maximizing data Quality
3. Each entity is represented as a(n):
A. Tuple
B. Table
C. Attributes
D. File
4. What term is used to a specific record in your music database; for instance; information stored about a
specific album?
A. Relation
B. Instance
C. Table
D. Column
5. What are certain packages that allow people to define data items, place these items particular records,
combine the records into designated files and then manipulate and the stored data
A. Data storage system
B. Database management system (DBMS)
C. Batch processing system
D. Data communication package
6. Which of the following problems using the sql group by phrase with a select statement can help to detect?
A. The multivalve multicolumn
B. The inconsistent values
C. The missing values
D. The general-purpose remarks
7. Which of the following column properties specifies whether or not cells in a column must contain database
values?
A. Null status
B. Data type
C. Default value
D. Data constraints
8. What are the instructions called that tell a system what how, and when to do something?
A. Object-oriented technology approach
B. Object-oriented database
C. Program Database management
9. A logical schema
A. Is the entire database
B. Is a standard way of organizing information in to accessible parts
C. Describes how data is actually stored on disk
D. The design of the database
10. In sql, which command is used to remove a stored function from the database?
A. REMOVE FUNCTION
B. DELTE FUNCTION
C. DROP FUNCTION
D. ERASE FUNCTION
11. The action in java class is
A. Procedure
B. Function
C. Method
D. Subroutines
13. Which of the following is not part of an administrative policy to secure a database?
A. Authentication policy
B. Limiting particular areas within a building to only authorized people
C. Ensure appropriate responses rates are in external maintenance agreements
D. Present information in different formats
14. When the values in one or more attributes being used as a foreign key must exist in another set of one or
more attributes in another table, we have created a(n):
A. Transitive dependency
B. Insertion anomaly
C. Referential integrity constraint
D. Normal form
Matching
Column A
1. Using either of the equivalent queries give the intersection of the two tables
2. A blueprint or prototype from which objects are created
3. Is a namespace for organizing classes and interfaces in a logical manner
4. Provides the ability to vary the implementation of a method or property
5. A program which converts the program written in a programming language to a program in machine
language
6. Logical values on which logical operations are performed
7. Returns all distinct row selected by either query
8. Mainly deals with the internal structure of the database
9. The process of efficiently organizing in a database
10. Retrieve data from tables quicker.
11. Identifies more critical and less critical activities and assignments.
12. Descriptions of objects.
13. Enforces valid entries
14. Ensures that all values in a column satisfy certain conditions
15. To combine the results of two queries together
Column B
A. complier
B. Prioritizes
C. Normalization
D. Class
E. White box testing
F. UNION ALL
G. Indexes
H. CHECK constraint
I. Package
J. Schema
K. Domain integrity
L. Full outer join
M. Inner join
N. Dim
O. COMMIT
P. Boolean operators
Q. UNION
R. Boolean
S. Polymorphism
T. DDL
Oral questioning
1. What is database?
2. How will you get the list of all the tables, in SQL database?
3. What is data mining?
4. What is the difference between a “where” clause and a “having” clause?
5. Describe the three level of data abstraction?
Answers are
1. Database is a logically coherent collection of data with some inherent meaning, representing from aspect of
real world and which is designed, built and populated with data for a specific purpose.
2. List all the tables of a database use the command on my sql shell as show tables
3. A mining is a process of analyzing current data and summarizing the information in more useful manner.
4. “Where “is a kind of restriction statement .you use where clause to restrict all the data from where clause is
using before result retrieving.
But having clause is using after retrieving the having clause is a kind of filtering command.
Where filters rows .having filters groups.
Choose the best answer:
1. Cardinality of 3 and degree of 2 of relation R and cardinality of 2 and degree of 3 of relation S. What
is the Cartesian product of RxS?
A.Cardinality=6,degree =8
B.Cardinality =5,degree=6
C.Cardinality=12 ,degree=8
D.Cardinally=6,degree=5
2. Scalability feature in SQL server enterprise edition:
A. Publishing
B. Data mining
C. Binary and compressed xml transport
D. Partitioning
3. Contains data and database objects
A. Log files
B. Data files
C. File groups
D. Primary files primary data files
4. Which is not SQL server Principal?
A. SQL server login
B. Windows domain login
C. SQL server
D. Application Role
6. Which one of the following is not factor that affect work place information communication.
A. Person behavior
B. Lack good governance
C. Office location
D. Motivation to work together
7. A language that expresses a computer problem as a series of objects system contains, the behaviors
of those objects and how the objects interact with each other.
A. Structure oriented programming languages
B. Object oriented programming languages
C. Functional oriented programming languages
D. Procedure oriented programming languages
8. One of the following is not a basic concept on object oriented programming languages?
A. Polymorphism C. Transmission
B. Class D. inheritance
11. The strategies in managing and maintaining small/medium business day to day operations does not
include:
A. Developing work activities
B. Developing effective work habits
C. Adjusting work schedules as needed
D. Developing business strategy
12. Which of the following is not true about strategic plans?
A. In indicates the future business plan of the organization
B. Implemented within bounded time
C. It indicates day to day activity of the organization
D. It indicates the major activities’ of the organization
13. You are assigned to lead a small team in your company that manages database. Identify the wrong
statement in leading the team:
19. One of the following is not the task applied when converting data
A. Backing up data before conversion
B. Documenting data rejection and errant behavior of data
C. Modifying and formatting data
D. Converting support documents
20. It is not an activity to estabilish specifications to maintain and improve quality at work
A. Developing an agreed upon specifications
B. Identifying quality requirements
C. Monitoring the effectiveness of quality assurance procedures
D. Providing service for requested departments
21. Which one of the following does not affect database performance(response time)?
A. Database design
B. Number of columns to be retrieved from tables
C. Number of concurrent users
D. Number of users within administrative access right
Matching
Column A Column B
1. A column of a table which has unique values
A. Table
for each record
2. Defines how data are stored in database B. Count
3. It is a place holder on memory
C. View
4. The protection of against the deliberate or
D. Relationship
Accidental access of unauthorized persons
5. A data element that describes entity and used to E. Primary key
identify one entity from other
F. Sum
6. An association between two data objects
G. ORDER BY
7. Searching selecting, and retrieving of actual from
personal file data bank or other file H. Variable
8. Virtual table
I. Physical level
9. User friendly interface to allow easy of data in
J. Attribute
The database
10. Standard operation which causes sorting, merging, K. Foreign key
Input/output, and report generating
L. GROUP BY
11. SQL command used to aggregate data
M. Form
12. SQL command used to sort data
13. Aggregate function to get number of rows in a table N. DATAADD
14. SQL function to get data interval
O. Data retrieval
15. An SQL statement used to remove table
P. Documentation
Q. DATEDIF
R. Data Manipulation
S. Data Security
T. Drop
Match column A with Column B
Column A Column B
13. The integrity rule which does not allow null value O. Referential integrity
of primary key
P. Recognition
14. Problem solving techniques which is applied to work
situation in business. Q. Negotiation
S. Data Redundancy
1. The process of deciding how to commit resources between varities possible task is:
A. Consistency C. Realistic
B. Scheduling D. specificity
2. The components of strategic plan that defines the organization’s purpose and primary objectives:
3. Which one of the following is the correct procedure that you follow to solve a problem.
A. Define the problemImplement the plandevelop the planevaluate the result.
B. Implement the plan define the problemdevelop a planevaluate the result.
C. Develop a plandefine the problemimplement the planevaluate the result.
D. Develop the problemdevelop a plan implement the planevaluate the result.
4. The process of combining heterogeneous data sources in to a single queriable schema to get a view
of these data.
5. The process of changing the data into the format of new database system is:
6. Suppose that you have an activity which can perform a number of times repeatedly. Then which of
the following statements is more preferable?
A. Create C. Retrieve
B. Update D. select
8. If you join data from two tables then which one of the following is true about the application of inner
join?
A. Returns only the rows from each table that has matching values in the join column
B. Returns all the rows of the first table
C. Returns a row in the result table for each combination of rows of using Cartesian product
D. Returns all the rows of the selected table.
9. The ability of database system to be enlarged to accommodate the growing amount of work
10. In database development life cycle, the process of testing a system module by module is:
11. Mr. Abebe is one of the database worker in your organization and he want to his Id_number from
org123 to org12 but he did not do it. Why abebe can’t change?
A. He may not have select privilege
B. He may not have insert privilege
C. He may not have update privilege
D. He may not have drop privilege
12. Assume you are a member of a database development team,and your team developed a database
system for a company which has thousands of customers whose information is updated rapidly. Six
months the company database faces a problem in its performamce. What is your recommendation for
this company?
A. The company should delete all customers information to improve performance
B. The company should tune the memory,I/O to improve performance
C. The company should update all customers information to improve performance
D. The company should ask the team to develop new database system to improve performance
13. Which one of the following is a concept of migrate to new technology?
A. Migrate from Microsoft office 2013 to Microsoft office 2007
B. Migrate from window 8 to window 7
C. Migrate from Microsoft SQL server 2012 to Microsoft SQL server 2008
D. Migrate from Microsoft Access to Microsoft SQL server
14. Why Microsoft SQL server is more preferable than Microsoft Access for database developer
A. Because Why Microsoft SQL server is open source software
B. Because Microsoft access is open source software
C. Because Microsoft SQL server is more secure than Microsoft access software
D. Two software have no difference
Project Information
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.
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.
Time: 20 min
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:
epartment
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
Task 5: The candidate is expected to import database created by access to SQL server as it is on 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