You are on page 1of 5

Productivity Improvement and Center Of Excellence

Entrance Exam Package 100%

Student Name
IDNO
Department
Please put a tick mark ( ) beside Your Instructor Melsew D.
Name
Subject Advanced database technology
Date of Exam
Time Allowed 1:30hr

GENERAL DIRECTIONS:
1. MAKE SURE THAT THE EXAM PAPER CONTAINS 04 PAGES INCLUDING THE
COVER PAGE
2. READ THE INSTRUCTION CAREFULLY FOR ALL PARTS
3. USE ONLY BLUE OR BLACK PANES

N.B: DONOT TURN THIS PAGE UNTIL YOU ARE ALLOWED TO DO SO


BE BEAUTIFUL! BE SMART! BE STYLISH! BUT PROTECT YOUR SELF FROM
COVID-19

1. Which one of the following given statements possibly contains the error?
A.
B. select * from emp where empid = D. select empid where empid = 1009
10003; and Lastname = 'GELLER';
C. select empid from emp where empid E. select empid from emp;
= 10006;

2. SELECT emp_name FROM department WHERE dept_name LIKE ' _____ Computer Sc
ience'; In the above-given Query, which of the following can be placed in the Query's
blank portion to select the "dept_name" that also contains Computer Science as its ending
string?
A. & C. %
B. _ D. $

3. What do you mean by one to many relationships?

A. One class may have many C. Many classes may have many
teachers teachers
B. One teacher can have many D. Many teachers may have many
classes classes

4. A Database Management System is a type of _________software.

A. It is a type of system software C. It is a kind of general software


B. It is a kind of application software D. Both A and C

5. Which one of the following refers to the "data about data"?

A. Directory C. Warehouse
B. Sub Data D. Meta Data

6. The term "TCL" stands for_____.

A. Ternary Control Language C. Transaction Central Language


B. Transmission Control D. Transaction Control Language
Language
7. Which of the following is used in the application programs to request data from the
database management system?

A. Data Manipulation language C. Data Control Language


B. Data Definition Language D. Transaction Control Language

8. Which of the following commands is used to save any transaction temporarily into the
database?

A. Commit C. Save point


B. Rollback D. None of the above

9. Which one of the following SQL commands is the same as relational algebra?
SELECT * FROM EMPLOYEE WHERE SkillType=Database”;

A. p < SkillType =”Database”> C. < SkillType =”Database”>


(Employee) (Employee)
B. s < SkillType =”Database”> D. s < SkillType =”Database”>
(Employee) [Employee]

10. The architecture of a database can be viewed as the ________

A. One level C. Three-level


B. Two-level D. Four level

11. Which of the following keys is generally used to represents the relationships between the
tables?

A. Primary key C. Secondary key


B. Foreign key D. None of the above

12. Which of the following levels is considered as the level closed to the end-users?

A. Internal Level C. Conceptual Level


B. External Level D. Physical Level

13. A _____ is a property of the entire relation, rather than of the individual tuples in which
each tuple is unique?

A. Rows B. Key
C. Attribute D. Fields

14. The____condition allows a general predicate over the relations being joined?

A. On C. Set

B. Using D. Where

15. A _____ indicates an absent value that may exist but be unknown or that may not exist at all?

A. Empty tuple C. Null value


B. New value D. Old value

16. SELECT __________FROM instructor WHERE dept name= ’Comp. Sci.’;


Which of the following should be used to find the mean of the salary?
A. Mean(salary) C. Sum(salary)
B. Avg(salary) D. Count(salary)

17. SELECT COUNT (____ ID) FROM teaches


WHERE semester = ’Spring’ AND YEAR = 2010;
If we do want to eliminate duplicates, we use the keyword ______in the aggregate
expression.
A. Count C. Primary key
B. Avg D. Distinct
18. In SQL, which command is used to select only one copy of each set of duplicable rows

A. SELECT DISTINCT C. C) SELECT


B. B) SELECT UNIQUE DIFFERENT
D. D) All of the above

19. The ability to query data, as well as insert, delete, and alter tuples, is offered by

A. TCL (Transaction Control Language D. DML (Data Manipulation


B. DCL (Data Control Language) Langauge)
C. DDL (Data Definition Langauge)

20. In the __________ normal form, a composite attribute is converted to individual attributes.

A. First
B. Second
C. Third
D. Fourth
A. Practical Test on SQL server 2012

Based the following Er-diagramu

1. Create a database named “ecommerce”


2. Create all the tables with their primary key, proper data types, and their relationships
using SQL statements
3. It was forgotten that the following fields were supposed to be on customer table
a. Customer sex
b. Date of birth as DOB
4. Fill five records on each table. For all tables the primary key is given. You can use
appropriate name and values for the remaining fields. Primary key for the relations is
given as follows. Each relation has five records
a. The primary key for customer is (from cid101, cid102 – cid105)
b. The primary key for Order is (from order201, order202 – order205)
c. The primary key for Product is (from Pr301,pr302 – pr305)
5. Write the following select queries
a. Design a query to retrieve names of customer from “z” to “A”
b. Design a query to retrieve names of female customer
c. Design a query to retrieve total number of list price in Product table

You might also like