handout1 - Practice SQL Queries CS 4604 (Fall 2010) August...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Practice SQL Queries CS 4604 (Fall 2010) August 30, 2010 Consider the following scenario modelling courses, students, professors, departments, and the like at a single university in a single semester. 1. Each student has a name, a unique PID, and an address. A professor has a name, a unique PID, and belongs to a department. We also want to record the age and office of the professor. Each course has a name, a number, an offering department, a classroom, and an enrollment. (This university has not yet invented the concept of CRNs.) Each department offers only one course with each number. 2. Each department has a unique name. Each department has at most one chairperson who is its head (there are times when a department may not have a chairperson). Each chairperson can be the head of at most one department. 3. Each student enrolls in a certain number of courses in the semester. At most one professor teaches each course. Each student receives a grade in each course he/she is enrolled in. In turn, each student evaluates the professor teaching the course. 4. A course can have multiple pre-requisites. A course can be a pre-requisites for multiple courses. A
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/24/2011 for the course CS 4604 taught by Professor Cmmalik during the Fall '08 term at Virginia Tech.

Page1 / 4

handout1 - Practice SQL Queries CS 4604 (Fall 2010) August...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online