Consider a relational database for a university registrar's office.
The relations are student, class, instructor, teaches, and taking.
The schemes of these relations are:
Student-scheme = (name, standing, student-num, gpa)
Class-scheme = (schedule-num, semester, department, number, days, time, place,
enrollment)
Instructor-scheme = (name, department, office)
Teaches-scheme = (name, office, schedule-num, semester)
Taking-scheme = (student-num, schedule-num, semester, grade)
where the value of attribute standing is one of {freshman, sophomore,
junior, senior}, and the schedule-num attribute of Class-scheme,
Teaches-scheme and Taking-scheme is a unique number used to identify a
particular section of a course (i.e. each course or section of a course has
a unique schedule number) within a single semester, and the semester
attribute of these relations identifies the year and semester of the course
(i.e. Spring 1997). In other words, the primary key of class is
{schedule-num, semester}, and other relations refer to a class via these
two attributes.
The teaches relation is intended to represent relationships between
instructors and classes, and the taking relation is intended to represent
relationships between students and classes.
The domain of gpa is
real numbers from 0.0 to 4.0.
Express each of the following in SQL-92:
insert into
report-cardvalues
(``Donny Osmond", ``Comp", 430, 0.67)select *
from
report-card