subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
To display data in a certain manner like alphabetical order is called
Answers: 1
question
Computers and Technology, 22.06.2019 11:20
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
You know the right answer?
Consider the following database schema: STUDENTS (SNUM: integer, SNAME : string, MAJOR : string, L...
Questions
question
Mathematics, 04.10.2021 17:30
question
Mathematics, 04.10.2021 17:30