0% found this document useful (0 votes)
13 views2 pages

Assignment 1

assignment

Uploaded by

shumaila alam
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)
13 views2 pages

Assignment 1

assignment

Uploaded by

shumaila alam
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/ 2

FAZAIA BILQUIS COLLEGE OF EDUCATION FOR WOMEN

PAF NUR KHAN, RWP

Assignment #1

Subject: DBMS Instructor: Shumaila Alam Class: BSCS

Course Code: CS230L Semester: 4th Total Marks: 20

Name: ____________________Roll No. _________________ Section:


______________
Due Date: 16 August 2024

Q 1: Consider the following information about a university database: CLO_1


Professors have an SSN, a name, an age, a rank, and a research specialty. Projects have a project
number, a sponsor name (e.g., NSF), a starting date, an ending date, and a budget. Graduate
students have an SSN, a name, an age, and a degree program (e.g., M.S. or Ph.D.).
a. Each project is managed by one professor (known as the project's principal investigator).
b. Each project is worked on by one or more professors (known as the project's co-
investigators).
c. Professors can manage and/or work on multiple projects.
d. Each project is worked on by one or more graduate students (known as the project's
research assistants).
e. When graduate students work on a project, a professor must supervise their work on the
project. Graduate students can work on multiple projects, in which case they will have a
(potentially different) supervisor for each one.
f. Departments have a department number, a department name, and a main office.
g. Departments have a professor (known as the chairman) who runs the department.
h. Professors’ work in one or more departments and for each department that they work in, a
time percentage is associated with their job. Graduate students have one major
department in which they are working on their degree.
i. Each graduate student has another, more senior graduate student (known as a student
advisor) who advises him or her on what courses to take.
j. Design and draw an ER diagram that captures the information about the university. Use
only the basic ER model here, that is, entities, relationships, and attributes. Be sure to
indicate any key and participation constraints.
Q 2: Create the following tables: CLO_2
On the basis of above two tables answer the following Questionries:
i) Find out the names of all the clients.
ii) Retrieve the list of names and cities of all the clients.
iii) List the various products available from the product_master table.
iv) List all the clients who are located in Rawalpindi.
v) Display the information for client no 0001 and 0002.
vi) Find the products with description as „1.44 drive‟ and „1.22 Drive‟.
vii) Find all the products whose sell price is greater then 5000.
viii) Find the list of all clients who stay in city Lahore‟ or Islamabad ‟ or Multan‟.
ix) Find the product whose selling price is greater than 2000 and less than or equal to 5000.
x) List the name, city and state of clients not in the state of Pakistan‟.

You might also like