Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
10 views5 pages

SET03

Uploaded by

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

SET03

Uploaded by

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

RGUKT- R K VALLEY:: IDUPULAPAYA

DATABASE MANAGEMENT SYSTEMS LAB


EXTERNAL LABORATORY EXAM

SET-03
Q1: Draw the ER DIAGRAM for the description of data base 10 M

Consider a CONFERENCE_REVIEW database in which researchers submit

their research papers for consideration. Reviews by reviewers are recorded

for use in the paper selection process. The database system caters primarily

to reviewers who record answers to evaluation questions for each paper they

review and make recommendations regarding whether to accept or reject the

paper. The data requirements are summarized as follows:

■ Authors of papers are uniquely identified by e-mail id. First and

lastnames are also recorded.

■ Each paper is assigned a unique identifier by the system and is

describedby a title, abstract, and the name of the electronic file containing

thepaper.

■ A paper may have multiple authors, but one of the authors is

designatedas the contact author.

■ Reviewers of papers are uniquely identified by e-mail address.

Eachreviewer’s first name, last name, phone number, affiliation, and topics

ofinterest are also recorded.

■ Each paper is assigned between two and four reviewers. A reviewer

rateseach paper assigned to him or her on a scale of 1 to 10 in four


categories: technical merit, readability, originality, and relevance to the

conference. Finally, each reviewer provides an overall recommendation

regardingeach paper.

■ Each review contains two types of written comments: one to be seen by

the review committee only and the other as feedback to the author(s).

Design an Entity-Relationship diagram for the CONFERENCE_REVIEW

database.
Q2: Consider the following database (Set of Tables)
Create UNIVERSITY database for the following data:

a) CREATE DATABASE <ID_DatabaseName_SETNUMBER>


and Create the tables <ID_TABLENAME_SETNUMBER>, insert the given data into the respective
tables.

Creation of database, creation of tables and insertion of data. Script Writing - 10M

Execution in SQL – Creation of tables and insertion data (Insert at least three rows in each table
which relevant for the question given in Q 2.b) 10 M
b) QUERIES – write and execute the following Queries

Script Writeup - 10M


Execution in SQL - 10 M

1. Write an sql statement to retrieve the number of employees in the ‘Research’.

2.Write an SQL statment to retrieves the name and address of every employee who
works for the ‘Research’ department.

3. Write an sql statement to retrieve the name of each employee who has a
dependent with thesame first name and is the same sex as the employee.

4. Write an sql statement- For each project on which more than two employees
work, retrieve the project number, the project name, and the number of
employees who work on the project.

5.Write an sql statement to retrieve the names of employees who make at least
$10,000 more thanthe employee who is paid the least in the company.

Q 3: Consider the following schema:

Suppliers(sID, sName, address)

Parts(pID, pName, colour)

Catalog(sID, pID, price)

Catalog[sID]⊆Suppliers[sID]

Catalog[pID]⊆Parts[pID]

Employees(number, name, age, salary)


Supervises(boss, employee)

Supervises[boss]⊆Employees[number]

Supervises[employee]⊆Employees[number]

Clients(CID, name, phone) Staff(SID, name)

Appointments (CID, date, time, service, SID)

Appointments[CID]⊆Clients[CID]

Appointments[SID]⊆Staff[SID]

Write the Relational Algebra and Tuple Relational Calculus


queries for the given questions

Relational Algebra

- 5 * 1M = 5M

Tuple relational Calculus

- 5 * 1M = 5M

1. Find the names of suppliers who supply some red part.

2. Find the IDs of suppliers who supply some red or green part.

3. Find the IDs of suppliers who supply some red part or are based at 21

GeorgeStreet.

4. Find the IDs of suppliers who supply some red part and some green part.

5. Find pairs of sids such that the supplier with the first sid charges more
for some part than the supplier with the second sid.

NOTE: Creation of database <ID_DatabaseName_SETNUMBER> and Creation of tables


<ID_TABLENAME_SETNUMBER> and insertion of given data in respective tables and execution
of queries output Screenshots should be taken and copy into word file, this word file
<ID_SETNUMBER_SECTION> into PDF version with <ID_SETNUMBER_SECTION>. PDF
File with <ID_SETNUMBER_SECTION> needs to be uploaded in shared google form which will
share at 4:40 PM.

You might also like