Computer AwarenessHardIBPS SO IT · SBI PO
An ORDERS table has CustomerID as a foreign key referring to CUSTOMER. A clerk tries to insert an order with CustomerID 9999, which does not exist in CUSTOMER. Which constraint is violated?
- A. Entity integrity
- B. Domain integrity
- C. Uniqueness of the primary key
- D. Referential integrity
Correct answer: D. Referential integrity
Referential integrity requires every foreign-key value to match an existing primary key (or be NULL). Entity integrity concerns NULLs in the primary key of the same table.
हिंदी में
ORDERS तालिका में CustomerID एक फ़ॉरेन की है जो CUSTOMER को संदर्भित करती है। एक क्लर्क CustomerID 9999 वाला ऑर्डर डालने का प्रयास करता है, जो CUSTOMER में मौजूद नहीं है। कौन-सा प्रतिबंध भंग होता है?
- A. एंटिटी इंटेग्रिटी
- B. डोमेन इंटेग्रिटी
- C. प्राइमरी की की अद्वितीयता
- D. रेफ़रेंशियल इंटेग्रिटी
उत्तर: D. रेफ़रेंशियल इंटेग्रिटी के अनुसार प्रत्येक फ़ॉरेन-की मान किसी मौजूदा प्राइमरी की से मेल खाना चाहिए (या NULL होना चाहिए)। एंटिटी इंटेग्रिटी उसी तालिका की प्राइमरी की में NULL से संबंधित है।
More Computer Awareness questions
- Which SQL command is placed in the WRONG category?
- Which of the following is NOT shared by the threads of one process?
- Print jobs from many users are first stored on disk and sent to a slow printer one by one, so the CPU can carry on with other work. This…
- Which sequence correctly describes how a TCP connection is set up by the three-way handshake?
- How does the Harvard architecture differ from the von Neumann architecture?
- A processor runs at 2 GHz. An instruction that needs 4 clock cycles takes how long to execute?