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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!