Entities and their Attributes in DBMS: We must know them to use properly.

Entities and their Attributes in DBMS: वह चीज जिसकी जानकारियों को हम Data के रूप में किसी Database में Store करते हैं, Entity कहलाता है। हमारे Music Store Application के सम्बंध में Customer एक प्रकार का Entity है क्योंकि हम Customer से Related Data को Database में Store करते हैं।

Entity हमेंशा कोई Physical वस्तु ही हो, एसा जरूरी नहीं होता है। दुनियां की किसी भी उस वस्तु को भी हम Entity मान सकते हैं, जो कि किसी Physical Entity से Related हो। उदाहरण के लिए किसी Bank का Account भी एक Entity हो सकता है, क्योंकि वह एक Physical Person से ही सम्बंधित होता है।

हर Entity के कुछ Data होते हैं, जो उस Entity को Describe करते हैं। Entity के इन Data को Entity का Attribute कहा जाता है। उदाहरण के लिए हमारे Music Store Application के सम्बंध में एक Customer को उसके Customer Number, First Name, Last Name, Street, City, State, Pincode व Phone Number द्वारा Describe किया जाता है। इसलिए ये सभी Data Customer Entity के Attributes हैं।

जब हम किसी Database में किसी Entity को Represent कर रहे होते हैं, तब वास्तव में हम किसी Entity के केवल Attributes को ही Computer में Store कर रहे होते हैं। Attributes का हरेक Group जो कि किसी एक Single Real World Entity के एक उदाहरण को Describe करता है, वही Attributes का Group उस Entity के दुनियां कि किसी भी अन्य Instance को Represent कर सकता है।

यानी जो Attributes किसी Rahul नाम के Customer को Represent कर सकते हैं, वे ही Attributes Rohit नाम के किसी दूसरे Customer को भी Represent कर सकते हैं। उदाहरण के लिए Students Entity की निम्न सारणी में चार Student Instance हैं और सभी Instance समान Attributes को Share कर रहे हैं।

SrNo Name FName City Dist. Class DOB     DOA    
001 Rahul Mohan Lal Falna Pali 10 10-02-1982 15-7-1987
002 Rohit Sohan Lal Bali Pali 09 11-12-1983 05-7-1987
003 Krishna Gopal Desuri Pali 08 20-03-1981 10-7-1987
004 Madhav Ram La l Falna Pali 10 30-2-1982 01-7-1987
005 Achyut Nand Lal Desuri Pali 07 12-12-1986 13-7-1987
006 Manohar Rohan Lal Bali Pali 10 10-11-1982 15-7-1987

यदि हमारे इस Database में 2000 Students होते, तो इस सारणी द्वारा 2000 Students Attributes के Collections होते। (Entities and their Attributes in DBMS)

Oracle 8i/9i SQL/PLSQL in Hindiये Article इस वेबसाईट पर Selling हेतु उपलब्‍ध EBook Oracle 8i/9i SQL/PLSQL in Hindi से लिया गया है। इसलिए यदि ये Article आपके लिए उपयोगी रहा, तो निश्चित रूप से ये पुस्तक भी आपके लिए काफी उपयोगी साबित होगी। 

Oracle 8i/9i SQL/PLSQL in Hindi | Page: 587 | Format: PDF

BUY NOW GET DEMO REVIEWS