0% found this document useful (0 votes)
13 views1 page

Ass1 Dbms

The document outlines an assignment for a Database Management System course, focusing on various entities related to a chosen enterprise, such as a hospital or university registrar's office. It includes tasks like identifying entities and attributes, creating an E-R diagram, discussing EF Codd's rules for relational databases, and writing SQL queries based on a given schema. The assignment emphasizes practical applications of database management concepts and relational algebra.
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)
13 views1 page

Ass1 Dbms

The document outlines an assignment for a Database Management System course, focusing on various entities related to a chosen enterprise, such as a hospital or university registrar's office. It includes tasks like identifying entities and attributes, creating an E-R diagram, discussing EF Codd's rules for relational databases, and writing SQL queries based on a given schema. The assignment emphasizes practical applications of database management concepts and relational algebra.
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/ 1

B.Tech.

(CS) III Semester Batch-A


First Assignment: Database Management System (CS 212)

1. Choose from the following list an enterprise you are most familiar with: hospital, fast-
food restaurant, department store. What are the entities of interest to this enterprise?
For each such entity set, list the attributes that could be used to model each of the
entities. Are there any attributes (or collections of attributes) in each entity set that
would uniquely identify an instance of the entity set? What are some of the
applications that may be automated using the DBMS? Design the views of these
applications and the conceptual view.
2. A university registrar’s office maintains data about the following entities: (a) courses,
including number, title, credits, syllabus, and prerequisites; (b) course offerings,
including course number, year, semester, section number, instructor(s), timings, and
classroom; (c) students, including student-id, name, and program; and (d) instructors,
including identification number, name, department, and title. Further, the enrollment
of students in courses and grades awarded to students in each course they are enrolled
for must be appropriately modeled. Construct an E-R diagram for the registrar’s
office. Document all assumptions that you make about the mapping constraints.
3. Discuss the Rules proposed by EF Codd for considering a database as a true relational
database with examples.
4. Consider the following schema:
Suppliers (sid : integer, sname : string, address : string)
Parts (pid : integer, pname : string, color : string)
Catalog (sid : integer, pid : integer, cost : real)
The key fields are underlined and domain of each field is listed after the field name

Write relational algebra expression and SQL queries for the following:

(a) Find the name of suppliers who supply some red parts
(b) Find the sids of suppliers who supply some red or green parts
(c) Find the sids of suppliers who supply some red part or live at 221 Mansarovar
Jaipur
(d) Find the sids of suppliers who supply some red part and some green part
(e) Find the sids of suppliers who supply every part
(f) Find the sids of suppliers who supply every red part
(g) Find the sids of suppliers who supply every red or green part

You might also like