Question: consider the following relation: Articles( ID , title, journal, issue, year, startpage, endpage, TR-ID) Write a SQL CHECK constraint statement* for Articles that ensure the
consider the following relation:
Articles(ID, title, journal, issue, year, startpage, endpage, TR-ID)
Write a SQL CHECK constraint statement* for Articles that ensure the following:
1. The value of the endpage attribute is never smaller than that of startpage
2. The value of year is given in full (e.g. 1999 is not abbreviated as 99). You may assume that year is of type integer, and that there are no articles more than 200 years old.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
