Page 1 of 1

The relational database schema below is a part of a University database schema, where each student has at most one tutor

Posted: Sun May 15, 2022 1:27 pm
by answerhappygod
The Relational Database Schema Below Is A Part Of A University Database Schema Where Each Student Has At Most One Tutor 1
The Relational Database Schema Below Is A Part Of A University Database Schema Where Each Student Has At Most One Tutor 1 (52.95 KiB) Viewed 115 times
The relational database schema below is a part of a University database schema, where each student has at most one tutor and each course has at most one class representative. CREATE DOMAIN StudldDomain AS int CHECK (VALUE >= 30000000 AND VALUE =< 300099999); CREATE DOMAIN CharDomain AS char(15); CREATE DOMAIN PointDomain AS int CHECK (VALUE BETWEEN O AND 1000); CREATE TABLE Student StudentId StudIdDomain PRIMARY KEY, Name CharDomain NOT NULL, NoOfPts Point Domain NOT NULL. Tutor StudldDomain REFERENCES Student (Studentld) ); CREATE TABLE Course Courseld CharDomain PRIMARY KEY. CourName CharDomain, ClassRep StudldDomain REFERENCES Student(Studentld) ); CREATE TABLE Enrolled StudentId StudentIdDomain NOT NULL REFERENCES Student, Courseld CharDomain NOT NULL REFERENCES Course. In TermPts PointDomain NOT NULL, PRIMARY KEY (StudentID, Courseld) ); 1- [3 points) Write SQL queries and Algebra expressions for the database above to do the following: Retrieve details of courses that have more than 50 students enrolled in it. SOL: Algebra: