Computers and Technology

Consider the following database schema: STUDENTS (SNUM: integer, SNAME : string, MAJOR : string, LEVEL : string, AGE : integer)
CLASS (NAME : string, MEETS_AT : time, ROOM : string, FID : integer)
ENROLLED (SNUM : integer, CNAME : string)
FACULTY (FID : integer, FNAME : string, DEPTID : integer)
The meaning of these relations is straightforward; for example, ENROLLED has one record per student-class pair such that the student is enrolled in the class. Express each of the following integrity constraints in SQL unless it is implied by the primary and foreign key constraint; if the constraint cannot be expressed in SQL, say so.
1. No faculty member from department number 5 can teach more than four courses.
2. The number of CS majors must be more than the number of math majors.
3. No student should enroll in more than 2 classes offered by the same faculty.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, bartlettcs9817
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
image
Computers and Technology, 22.06.2019 22:30, kierafisher05
What is the most popular genre of video games?
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, jayjay5246
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
image
Computers and Technology, 23.06.2019 22:50, atifgujar
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
Do you know the correct answer?
Consider the following database schema: STUDENTS (SNUM: integer, SNAME : string, MAJOR : string, L...

Questions in other subjects:

Konu
Arts, 09.11.2020 21:20
Konu
Mathematics, 09.11.2020 21:20
Konu
Mathematics, 09.11.2020 21:20