qbe-in-class-practice

.pdf

School

University of California, San Diego *

*We aren’t endorsed by this school

Course

190

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

2

Uploaded by LieutenantPencil12691

Report
DSE Beyond Relational Models in-class practice Day 1 QBE Practice Consider the following relational schema capturing data of a university: Person (string ssn, string name_fname, string name_lname, Date birthdate) Prevnames ( string ssn, string Pname_fname, string Pname_lname ) foreign key Prevnames.ssn references Person Faculty (string ssn, string rank, string phone, string office) foreign key Faculty.ssn references Person Advises ( string fssn, string gssn ) foreign key Advises.fssn references Faculty foreign key Advises.gssn references GradStu Dept ( string dname, string address_street, string address_city, string address_state, int address_zip, int address_buildingCode) Has_faculty ( string ssn, string dname ) foreign key has_faculty.ssn references Faculty foreign key has_faculty.dname references Dept GradStu (string ssn, string major, real gpa) foreign key GradStu.ssn references Person
1. Find all faculty (report ssns only) who are teaching in the CS department: 2. Find all faculty (report ssns and name) who are teaching in the CS department: 3. Find the department of the faculty member formerly known as Charles Xavier 4. Find the faculty affiliated with all departments (report ssn and name)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help