0% found this document useful (0 votes)
14 views4 pages

Assgnment1 questionsDB

Uploaded by

3amrithamanoj12a
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

Assgnment1 questionsDB

Uploaded by

3amrithamanoj12a
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Class No. ……………..

……… (Pages: 3)

Name ………………………….
MAR BASELIOS COLLEGE OF ENGINEERING & TECHNOLOGY (AUTONOMOUS)
Thiruvananthapuram – 695 015
S4CT: Assignment 1
CS1U20E Database Management Systems
Maximum: 50 Marks

(Answer all questions)

Assume the following relations: (10 marks)


1. BOOKS(DocId, Title, Publisher, Year)
STUDENTS(StId, StName, Major, Age)
AUTHORS(AName, Address)
borrows(DocId, StId, Date)
has-written(DocId, AName)
describes(DocId, Keyword)
Write the SQL queries :

a) List all information about students whose major is CS.


b) List the name of students who are older than 30 and who are not studying
CS.
c) List all books published by McGraw-Hill before 1990.
d) List the names of all students who have borrowed a book and who are CS
majors.
List the title of books written by the author ’Silberschatz’.
2. a. Construct an ER Diagram for Company having following details : (10 Marks)
Company organized into DEPARTMENT. Each department has unique
name and a particular employee who manages the department. Start date for
the manager is recorded. Department may have several locations.
A department controls a number of PROJECT. Projects have a unique
name, number and a single location.
Company’s EMPLOYEE name, ssno, address, salary, sex and birth date
are recorded. An employee is assigned to one department, but may work
for several projects (not necessarily controlled by her dept). Number of
hours/week an employee works on each project is recorded; The immediate su-
pervisor for the employee.
Employee’s DEPENDENT are tracked for health insurance purposes (dependent
name, birthdate, relationship to employee).

3. Construct appropriate tables for the following ER diagram. (6 marks)


Construct an ER Diagram for Company having following details :
÷ Company organized into DEPARTMENT.
Each department has unique name
and a particular employee who manages the department. Start date for the
manager is
recorded. Department may have several locations.
÷ A department controls a number of PROJECT.
Projects have a unique name,
number and a single location.
÷ Company9s EMPLOYEE name, ssno, address,
salary, sex and birth date
are recorded. An employee is assigned to one department, but may work
for several
projects (not necessarily controlled by her dept). Number of
hours/week an employee works on each project is recorded; The immediate su-
pervisor
for the employee.
÷ Employee9s DEPENDENT are tracked for health
insurance purposes (dependent
name, birthdate, relationship to employee).
a)
(4 marks)

4. (10 marks)

5.

(10 marks)

b) Explain the role of Database Administrator.

Prepare a presentation on the following topics:- (need to post in classroom)

Physical Data Organization: Physical and Logical Records


Blocking Factor
Pinned and Unpinned Organization
Heap Files

The relational database schema below represents certain information about al-
bums, songs in the albums and singers of those songs. Foreign keys are given the
same name as primary keys.
ALBUMS (ALBUM_No, ALBUM-NAME, PRODUCED-BY, YEAR)
SONGS (SONG_No, SONG-START, DURATION, ALBUM_No)
SUNGBY (ARITISTNAME, SONG_No).
Write relational algebra expressions for the following queries:
(a) Names of albums produced by ‘HMV’ in the year 2018.
(b) Names of albums in which an artist with name, ‘AVANTHIKA’
sung.
(c) Names of albums in which all the artists have sung songs.

Mapping of Questions to Course Outcomes and Bloom’s Taxonomy level

Section Questions and Outcomes


Qn. No. 1 2 3a 3b 4 5
Course
CO
Out- CO2 CO2 CO3 CO4 CO3
1
comes
Taxon-
omy 3 3 3 2 2 3
level

You might also like