Sei sulla pagina 1di 2

Department: Electrical Engineering

Course: Relational Database


Docent:P. Prakasan M.Tech
Date:21st October 2016

Time: 9.00 -12.00 u. Maximum marks: 100pt

Answer the Questions Only in English


Part A
(Answer all questions)
1. Define a Database Schema?

2. What is Database Instance


3. What is the role of Database Administrators?

4. What you mean by logical and physical Data Independence?

5. Explain Check Integrity Constraint on Tables.

(5 4pt. = 20 pt.)
Part B
(Answer Any Five questions)
6. Explain different types of Data Models
7. Discuss 1NF,2NF and 3NF with an example and state the normal forms
8. Explain different types of Atributes in Entity Relationship Model
9. The given database Schema is
Employee(FName, Initial, Lname, ENO ,DOB, Address, Sex, Salary,
Supereno,Dno)
Department( Dname, Dnumber,mgreno,mgrstartdate)
Dept_locations(Dnumber,Dlocation)
Project(Pname, Pnumber , plocation, dnum)
Works_on(EENO, PNo, hours)
Dependent(EENo, Dependent_Name, Sex, BDate, Relationship)
Write the SQL queries with the above schema
a. Retrieve the name and address of all employees who work for
the Research department

Page 1 of 2
b. List the project numbers for projects that involve an
employee whose last name is Kumar, either as a worker or as a
manager of the department that controls the project.
c. For each department, retrieve the department name and the
average salary of all employees working in that department.
d. Retrieve the average salary of all female employees
e. Retrieve the names of employees who work on all the
projects that Mahesh Kumar works on

10. Explain Primary key,Foreignkey,Superkey and Candidate key with examples.

11. An organization purchases items from a number of suppliers. Suppliers are identified
by SUP-ID. It keeps track of the number of each item type purchased from each
supplier. It also keeps a record of suppliers addresses. Supplied items are identified
by ITEM-TYPE and have description (DESC). There may be more than one such
addresses for each supplier and the price charged by each supplier for each item type
is stored.

I. Identify the entites and relationships for this organization and construct an E-R
diagram. From the E-R diagram, write the scripts(SQL Query) for creating a
schema.

(516pt = 80 pt)

Page 2 of 2

Potrebbero piacerti anche