Saturday, July 30, 2022

Databases Concepts

 File System - It is a container which is used to store file in secondary storage device and later we can access data.

Limitation of file system -

(1) Data Redundancy - It means duplication of data .In this same data is  different file.

It leads to access storage.

(2) Data Inconsistent cy - It means same data is maintained in different places but do not match.

(3) Data isolation - In this data is stored in two different files but there is no link between them 

(4) Data Dependence - if the specific format of file changed all the programs  which are accessing that file also needs to be change otherwise they will not work properly is called data dependency.

(5) Controlled Data Sharing - In file system it is very diffficult to enforce access control in file system through application program.

DBMS -  It is a software that can be used to create and manage databases

(a) It is called database management system

(b) It overcome limitation of file system

(c) In this system we can organize data

(d) Data are logically relate

(e) It works as a interface between the 

      Database and application program.

(F) It only provide abstract view to user

Example -MySQL, Oracle, Microsoft Access,

           SQL Server


Keyconcept in DBMS - 

(1) Database schema- It is design of database (                                    It is also called logical                                                 structure which tells us how                                      data is organised in database 

(2) Data constraint - some restrictions through which we decide which type of data will be insert in column.

(3) Meta data- Data about data is called meta data

(4) Database instance- state of the database at any given time

(5) Data manipulation - modification of database which includes insertion, deletion, updation.

(6) Database engine - set of program used by DBMS to create database and handle quries

_-----_-------------------------------------------------------------

-------------------------------------------------------------------

Attribute -column of a relations are called attribute.

Degree - The number of attributes in a relation is called attributes.

Tuple -Each row in a relation is called Tuple.

Cardinality - The number of tuple in a relation is called cardinality

Domain - Set of values from which an attribute can take a value in each row.

-------------------------------------------------------------------

Data model -data models are used to describe structure of database.

Example - relational data model, object oriented data model entity relationship data model.

RDBMS - it is called relational data model

                  Data is arranged in the form of  table.

                  Table has row which represent a  Related set of values.

                   Table has column which represent  Fields. Each column is unique.

Keys in a relational database -

                    Primary key - key which is used  To uniquely identify each row in   a table.

                      Composite primary key - when  More than one attribute is.  Used to identify each row in                        a  Table. It is called 

Composite primary key.

Foreign key - It is used to connect two tables.

It is a key whose value  is derived from the primary key of other relation.


=========================================================================

फाइल सिस्टम - यह एक कंटेनर है जिसका उपयोग फाइल को सेकेंडरी स्टोरेज डिवाइस में स्टोर करने के लिए किया जाता है और बाद में हम डेटा एक्सेस कर सकते हैं।


फाइल सिस्टम की सीमा -


(1) डेटा रिडंडेंसी - इसका मतलब डेटा का दोहराव है। इसमें एक ही डेटा अलग फाइल है।यह एक्सेस स्टोरेज की                              ओर जाता है।

(2) डेटा असंगत साइबर - इसका मतलब है कि एक ही डेटा अलग-अलग जगहों पर रखा जाता है लेकिन मेल नहीं खाता।

(3) डेटा आइसोलेशन - इसमें डेटा दो अलग-अलग फाइलों में स्टोर होता है लेकिन उनके बीच कोई लिंक नहीं होता है

(4) डेटा डिपेंडेंस - यदि फ़ाइल के विशिष्ट प्रारूप ने उन सभी प्रोग्रामों को बदल दिया है जो उस फ़ाइल तक पहुँच रहे हैं, तो उन्हें भी बदलने की आवश्यकता है अन्यथा वे ठीक से काम नहीं करेंगे, डेटा निर्भरता कहलाती है।

(5) नियंत्रित डेटा साझाकरण - फाइल सिस्टम में एप्लिकेशन प्रोग्राम के माध्यम से फाइल सिस्टम में एक्सेस कंट्रोल को लागू करना बहुत कठिन है।

DBMS - यह एक सॉफ्टवेयर है जिसका उपयोग डेटाबेस बनाने और प्रबंधित करने के लिए किया जा सकता है

(ए) इसे डेटाबेस प्रबंधन प्रणाली कहा जाता है

(बी) यह फाइल सिस्टम की सीमा को दूर करता है

(सी) इस प्रणाली में हम डेटा व्यवस्थित कर सकते हैं

(डी) डेटा तार्किक रूप से संबंधित हैं

(ई) यह डेटाबेस और एप्लिकेशन प्रोग्राम के बीच एक इंटरफेस के रूप में काम करता है

(एफ) यह केवल उपयोगकर्ता को अमूर्त दृश्य प्रदान करता है

उदाहरण-MySQL, Oracle, Microsoft Access,

डीबीएमएस में मुख्य अवधारणा -

(1) डेटाबेस स्कीमा- यह डेटाबेस का डिज़ाइन है (इसे तार्किक संरचना भी कहा जाता है जो हमें बताता है कि डेटाबेस में डेटा कैसे व्यवस्थित किया जाता है

(2) डेटा बाधा (Database constraint ) - कुछ प्रतिबंध जिसके माध्यम से हम तय करते हैं कि कॉलम में किस प्रकार का डेटा डाला जाएगा।

(3) मेटा डेटा- डेटा के बारे में डेटा को मेटा डेटा कहा जाता है

(4) डेटाबेस इंस्टेंस- किसी भी समय डेटाबेस की स्थिति

((5) डेटा maipulation  - डेटाबेस का संशोधन जिसमें सम्मिलन, हटाना, अद्यतन (update ) करना शामिल है।

(6) डेटाबेस इंजन -   डेटाबेस बनाने और database handle  के लिए DBMS द्वारा उपयोग किए जाने वाले                                          प्रोग्राम का सेट

---------------------------------------------------

----------------------------------------------------------------

-एट्रीब्यूट - किसी रिश्ते के कॉलम को रिलेशन कहा जाता है, टपल कहलाता है।


कार्डिनैलिटी - किसी रिलेशन में टपल की संख्या को कार्डिनैलिटी कहते हैं

डोमेन - मानों का समूह जिससे एक विशेषता प्रत्येक पंक्ति में एक मान ले सकती है।

-------------------------------------------------- -----------------

डेटा मॉडल -डेटा मॉडल का उपयोग डेटाबेस की संरचना का वर्णन करने के लिए किया जाता है।

उदाहरण - रिलेशनल डेटा मॉडल, ऑब्जेक्ट ओरिएंटेड डेटा मॉडल एंटिटी रिलेशनशिप डेटा मॉडल।

RDBMS - इसे रिलेशनल डेटा मॉडल कहा जाता है

                  डेटा को तालिका के रूप में व्यवस्थित किया जाता है।

                 Row -तालिका में पंक्ति है जो मूल्यों के संबंधित सेट का प्रतिनिधित्व करती है।

           Column -        तालिका में कॉलम है जो फ़ील्ड का प्रतिनिधित्व करता है। प्रत्येक स्तंभ अद्वितीय है।

रिलेशनल डेटाबेस में कुंजियाँ -

    (Primary key)                प्राथमिक कुंजी - कुंजी जिसका उपयोग तालिका में प्रत्येक पंक्ति को विशिष्ट रूप से पहचानने के लिए किया जाता है।

   (Composite primary key)                   समग्र प्राथमिक कुंजी - जब एक से अधिक विशेषताएँ हों। तालिका में प्रत्येक पंक्ति की पहचान करने के लिए उपयोग किया जाता है। यह कहा जाता है

समग्र प्राथमिक कुंजी।

विदेशी कुंजी(foreign key) - इसका उपयोग दो तालिकाओं को जोड़ने के लिए किया जाता है।

यह एक कुंजी है जिसका मूल्य अन्य संबंध की प्राथमिक कुंजी से प्राप्त होता है।



============================================ =======================

क्षमता - यह एक कंटेनर फाइल को फाइल को फाइल में बदल सकता है और इसमें शामिल होने के लिए सक्षम हो सकता है।

No comments:

Post a Comment

if you have any doubt. please let me know.

Data communication

 Communication means exchange of data between two or more Devices. Components of data communication - 1. Sender.    2. Receiver.     3. Mess...