We read your photo as:
Develop a set of constraints for a database table that ensures each email address entered is unique and not null.
Computer Science
ScanSolve AI Answer
एक डेटाबेस तालिका के लिए बाधाओं का एक सेट विकसित करने के लिए जो यह सुनिश्चित करता है कि दर्ज किया गया प्रत्येक ईमेल पता अद्वितीय (unique) है और शून्य नहीं (not null) है, हमें UNIQUE और NOT NULL बाधाओं का उपयोग करना होगा।
UNIQUEबाधा यह सुनिश्चित करती है कि कॉलम में सभी मान अलग-अलग हों, जिससे डुप्लिकेट ईमेल पते दर्ज नहीं किए जा सकते।NOT NULLबाधा यह सुनिश्चित करती है कि कॉलम में कोई भी मान शून्य (NULL) नहीं हो सकता, जिससे ईमेल पता खाली नहीं छोड़ा जा सकता।
अन्य विकल्प:
- A.
INDEXऔरCHECKबाधाएँ:INDEXप्रदर्शन में सुधार करता है लेकिन स्वयं विशिष्टता लागू नहीं करता (जब तक कि यह एकUNIQUE INDEXन हो)।CHECKबाधा कुछ शर्तों को लागू कर सकती है लेकिन सीधे विशिष्टता या गैर-शून्यता सुनिश्चित नहीं करती। - B.
CHECKऔरDEFAULTबाधाएँ:DEFAULTबाधा एक डिफ़ॉल्ट मान प्रदान करती है यदि कोई मान निर्दिष्ट नहीं किया जाता है, लेकिन यह विशिष्टता या गैर-शून्यता को लागू नहीं करती है। - D.
PRIMARY KEYऔरFOREIGN KEYबाधाएँ:PRIMARY KEYविशिष्टता और गैर-शून्यता दोनों को लागू करता है, लेकिन ईमेल पता हमेशा प्राथमिक कुंजी के लिए सबसे अच्छा विकल्प नहीं होता है।FOREIGN KEYबाधा तालिकाओं के बीच संबंध स्थापित करती है और विशिष्टता या गैर-शून्यता को सीधे लागू नहीं करती है।
इसलिए, UNIQUE और NOT NULL बाधाएँ सीधे प्रश्न में उल्लिखित आवश्यकताओं को पूरा करती हैं।
(C) ईमेल पता कॉलम पर अद्वितीय और शून्य प्रतिबंध नहीं
अतः, सही विकल्प है:
(C) UNIQUE and NOT NULL constraints on the email address column
Was this helpful?
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
Got a different question?Ask your own question
More Computer Science Questions
QAssess the importance of constraints such as UNIQUE and CHECK constraints in enforcing data…QA ____ name must be unique within a database.QDesign two database tables: CUSTOMER and SALES. Specify attributes, data types, and keys.QWhich of the following normalization forms ensures that each non-key column is dependent only on the…QConsider the following relational database schema where the fields StudentId and SubjectCode in the…
Browse by topic:SQL

Handwritten Step-by-Step Solution
Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.
Try on WhatsApp