Computer AwarenessHardIBPS SO IT Officer
In an ER model, CUSTOMER and ACCOUNT have a one-to-many relationship (one customer, many accounts; each account has one customer). When converted to tables, where does the foreign key go?
- A. In CUSTOMER, holding the account number
- B. In a third table that is required for every relationship
- C. In ACCOUNT, holding the customer's ID
- D. In both tables, each pointing to the other
Correct answer: C. In ACCOUNT, holding the customer's ID
The foreign key goes on the 'many' side: each account row stores its one customer's ID. A separate linking table is needed only for many-to-many relationships.
हिंदी में
ER मॉडल में CUSTOMER और ACCOUNT में एक-से-अनेक संबंध है (एक ग्राहक, कई खाते; प्रत्येक खाते का एक ग्राहक)। तालिकाओं में बदलने पर फ़ॉरेन की कहाँ जाती है?
- A. CUSTOMER में, जो खाता संख्या रखे
- B. तीसरी तालिका में, जो प्रत्येक संबंध के लिए आवश्यक है
- C. ACCOUNT में, जो ग्राहक की ID रखे
- D. दोनों तालिकाओं में, प्रत्येक दूसरी की ओर संकेत करे
उत्तर: C. फ़ॉरेन की ‘अनेक’ वाले पक्ष में जाती है: प्रत्येक खाता-पंक्ति अपने एक ग्राहक की ID रखती है। अलग लिंकिंग तालिका केवल अनेक-से-अनेक संबंधों के लिए चाहिए।
More Computer Awareness questions
- A device joins two LAN segments, learns which MAC addresses sit on each side, and forwards a frame across only when its destination is on…
- Bank servers must agree on the exact time so that transaction logs and security certificates check correctly. Which protocol keeps their…
- A bank lets selected outside vendors and partner firms log in securely to part of its private internal network to share orders and…
- 'Big data' is commonly described by three Vs. Which set is it?
- In a blockchain, every block stores the hash of the block before it. What happens if someone alters a transaction in an old block?
- A bank trains a model on past loan applications, each labelled 'repaid' or 'defaulted', so that it can predict the outcome for new…