DATABASE CONCEPTS
DATABASE CONCEPTS
Advantages of DBMS
1) Databases reduces the data redundancy to a large extent.
2) Data Consistency : DBMS provides data consistency to a large extent as the
changes made at one place are reflected at all other places or to all the users.
3) Sharing of Data
4) Reduced programming efforts.
5) Databases in various can ensure data security
Applications of DBMS : can be used in Airlines, Banking, Finance, Inventory
Management etc.
2) Metadata : refers to data about data. In a DBMS, the data in tables have certain
properties and such as type of data, length, description of the columns that allow the
DBMS to process the data meaningfully. This is called as Metadata.
Components of a table
Entity : An entity is something that exists and about which we can store some
information. For example, student entity, employee entity, etc. Entity becomes the
name of the table.
Domain : A domain is the set of possible values for a specific column. For example
domain for name in a table is alphabets A to Z and special symbols i.e. space and
underscore.
Keys
A key allows us to identify an attribute or a set of attributes on the basis of which a
table is identified. Keys also ensure that each record within a table can be uniquely
identified.
Types of Keys
Candidate Key : A group of attributes that can serve as primary key of a relation
are candidate keys as these are candidates for primary key position.
Alternate Key : A candidate key of a table which is not made its primary key is
called its Alternate Key.
2) DML (Data Manipulation Language) : All the commands which are used to
manipulate (add, delete, modify, display) data within tables come under this
category. Example – INSERT, UPDATE, DELETE.