Express the constraint that the street number in the addressee's address must be within the range valid for the corresponding street.

What will be an ideal response?


CREATE ASSERTION ValidateRanges
CHECK ( NOT EXISTS
( SELECT *
FROM Addressee A, Streets S
WHERE A.StreetName = S.StreetName AND
A.City = S.City AND
(A.StreetNumber < S.MinHouseNumber
OR A.StreetNumber > S.MaxHouseNumber) )
)

Computer Science & Information Technology

You might also like to view...

Desktop applications are platform-neutral

Indicate whether the statement is true or false

Computer Science & Information Technology

OneNote is ______________. 

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology