Questions
Questions

BU.330.770.T2.FA25 Quiz 2- Requires Respondus LockDown Browser

Single choice

You have a ๐‘† ๐‘ก ๐‘ข ๐‘‘ ๐‘’ ๐‘› ๐‘ก ๐‘  table with an ๐ด โ‰ฅ column. You need to enforce a rule that the age must be between 18 and 30, inclusive. Which constraint should you use and how?

Options
A.A ๐ท ๐ธ ๐น ๐ด ๐‘ˆ ๐ฟ ๐‘‡ constraint to set the age to 18 if it is not within the range.
B.A ๐ถ ๐ป ๐ธ ๐ถ ๐พ constraint defined as ๐ด ๐ฟ ๐‘‡ ๐ธ ๐‘… ๐‘‡ ๐ด ๐ต ๐ฟ ๐ธ ๐‘† ๐‘ก ๐‘ข ๐‘‘ ๐‘’ ๐‘› ๐‘ก ๐‘  ๐ด ๐ท ๐ท ๐ถ ๐ป ๐ธ ๐ถ ๐พ ( ๐ด โ‰ฅ ๐ต ๐ธ ๐‘‡ ๐‘Š โˆƒ ๐‘ 18 ๐ด ๐‘ ๐ท 30 ) ;
C.A ๐‘ ๐‘‚ ๐‘‡ ๐‘ ๐‘ˆ ๐ฟ ๐ฟ constraint to prevent null values in the ๐ด โ‰ฅ column.
D.A ๐‘ˆ ๐‘ ๐ผ ๐‘„ ๐‘ˆ ๐ธ constraint to ensure no two students have the same age.
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
The question asks which constraint should enforce that the age in the Age column of the Students table lies between 18 and 30, inclusive. Option 1: 'A DEF A U L T constraint to set the age to 18 if it is not within the range.' This describes an automatic modification (setting age to 18) rather than preventing invalid data, which is not......Login to view full explanation

Log in for full answers

We've collected overย 50,000 authentic exam questionsย andย detailed explanationsย from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!