Refer to the class notes and the University E/R diagram. 1. Write an assertion which limits...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Refer to the class notes and the University E/R diagram. 1. Write an assertion which limits the enrollment in computer science sections to 40 or less students. 2. Write an assertion for the rule: "A student may not enroll in more than 6 courses per year". 3. Suppose we want to ensure that the foreign key CourseId values of the SECTION table records are never modified, either accidentally or intentionally. That is, no section should possibly be assigned to a different course other than the course it was originally intended for. Design a trigger that intercepts a modification to this field and sets the value back to what it was. The University E/R diagram <Enrolls DName Abbrev Sid SName Grad Year Students Majors Departments Old Has Enrollments For Sections Offeredin Courses Eld Professor YearOffered Ctitle An E/R diagram for a university Courses are year long in length Departments (DId, DeptName, Abbrev) Courses (CId, Title, DeptId) Sections (SectId, YearOffered, Professor, CourseId) Students (SId, SName, Grad Year, MajorId) Enrollments (Eld, StudentId, SectionId, Grade) Refer to the class notes and the University E/R diagram. 1. Write an assertion which limits the enrollment in computer science sections to 40 or less students. 2. Write an assertion for the rule: "A student may not enroll in more than 6 courses per year". 3. Suppose we want to ensure that the foreign key CourseId values of the SECTION table records are never modified, either accidentally or intentionally. That is, no section should possibly be assigned to a different course other than the course it was originally intended for. Design a trigger that intercepts a modification to this field and sets the value back to what it was. The University E/R diagram <Enrolls DName Abbrev Sid SName Grad Year Students Majors Departments Old Has Enrollments For Sections Offeredin Courses Eld Professor YearOffered Ctitle An E/R diagram for a university Courses are year long in length Departments (DId, DeptName, Abbrev) Courses (CId, Title, DeptId) Sections (SectId, YearOffered, Professor, CourseId) Students (SId, SName, Grad Year, MajorId) Enrollments (Eld, StudentId, SectionId, Grade)
Expert Answer:
Answer rating: 100% (QA)
An assertion to limit the enrollment in computer science sec... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Crosby is known for his advocacy of zero-defects management and prevention; Crosby's Quality Vaccine consists of which three ingredients? Group of answer choices A. Determination, Education, and...
-
Team Sports has 5.9 million shares of common stock outstanding, 3.9 million shares of preferred stock outstanding, and 39 thousand bonds. If the common shares are selling for $4.90 per share, the...
-
On June 1, Bash Salad Dressings creates a petty cash fund with an imprest balance of $450. During June, Al Franklin, the fund custodian, signs the following petty cash tickets: On June 30, prior to...
-
The probability that a turbine will have a defective coil is 0.10, the probability that it will have defective blades is 0.15, and the probability that it will have both defects is 0.04. (a) What is...
-
(Debtor/Creditor Entries for Continuation of Troubled Debt with New Effective Interest) Crocker Corp. owes D. Yeager Corp. a 10-year, 10% note in the amount of $330,000 plus $33,000 of accrued...
-
What is the present value of $150 received at the beginning of each year for 16 years? The first payment is received today. Use a discount rate of 9%.
-
The file P02_07.xlsx includes data on 204 employees at the (fictional) company Beta Technologies. a. Run a forward stepwise regression of Annual Salary versus Gender, Age, Prior Experience, Beta...
-
The company only sells goods on credit 2015 2016 Accounts receivable $900,000 $800,000 Sales revenue was $8,100,000, sales returns and allowances were $20,000, and sales discounts were $40,000 What...
-
What is the name of the Executive Order President Jackson signed that required someone who wanted to buy public land could only use cash?
-
Select any business-to-business ( B2B) website. Navigate to find the page(s) on the site that illustrates each component of either the classical or neo-classical marketing mix Explain why or how the...
-
How we need to understand everyone involved with determining project success, as project success is multi-dimensional. For this discussion entry, think back to a project you were involved in or are...
-
Define postmodernist organization theory. How does postmodernist theory inform the assertions of the textbook? How does postmodernist theory inform the way organizations are perceived? Describe how...
-
12. In the following tasks, match the appropriate quality term with the example given. Choices are: Quality Management System (QMS), Quality Assurance (QA), or Quality Control (QC) a) Assessment of...
-
For a SPAD operating in Geiger mode with no impinging photons, a dark count rate of 25 counts/s, and no afterpulsing, draw the voltage output vs time for a period of 100 ms.
-
Modify the counter from Exercise 5.44 such that the counter will either increment by 4 or load a new 32-bit value, D, on each clock edge, depending on a control signal Load. When Load = 1, the...
-
The average annual lost time (in hours) due to traffic congestion on highways for various years is 22, 30, 24, 27, and 32. Let L be the average annual lost time (in hours) due to traffic congestion....
-
(1 3)2 + (2 3)2 + (6 3)2/3 - 1 Perform the indicated operations by hand.
-
7 / 2x 5 / 6 = 1 / 3 + 3 / 4x Simplify the expression or solve the equation, as appropriate.
-
There is another possible explanation for purchased goodwill appearing in a sole proprietor's statement of financial position. What do you think it might be?
-
Why do the assets need to be revalued in these cases? The business has not been sold.
-
The shown partners have always shared profits and losses in the ratio: Holt 4; Stott 2: Young 1. From 1 January the assets were to be revalued as the profit sharing ratios are to be altered soon. The...
Study smarter with the SolutionInn App