unit database _part_1
unit database _part_1
Class XII
UNIT- DATABASE
CONCEPTS- (PART-A)
DATABASECONCEPTS
A Database is a collection of DATA/INFORMATION
that is organized so that it can be easily accessed,
managed and updated.
InDatabase,Data is organized into rows,columns and
tables, and it is indexed to make it easier to find
relevant information. It works like a container which
contains the various object like Tables, Queries,
Reports etc. in organized way.
Visit:python.mykvs.inforregularupdates
DATABASECONCEPTS
Visit:python.mykvs.inforregularupdates
DATABASECONCEPTS
DatabaseManagementSystem(DBMS)
Visit:python.mykvs.inforregularupdates
DATABASECONCEPTS
Advantages of Database System
❖ Databases reduces Redundancy:
It removes duplication of data because data are kept at one place and
all the application refers to the centrally maintained database.
When two copies of the same data do not agree to each other, then it
is called Inconsistency. By controlling redundancy, the inconsistency is
also controlled.
❖Attribute/ Field-
Column of a table is called Attribute or Field.
❖Degree
- Number of columns (attributes) in a table.
❖Cardinality
- Number of rows (Records) in a table.
DATABASECONCEPTS
KEYS IN A DATABASE :
Key plays an important role in relational database; it is used for
identifying unique rows from table & establishes relationship
among tables on need.
❖ Primary Key –
A primary is a column or set of columns in a table that
uniquely identifies tuples (rows) in that table.
Only 1 primary key is allowed in a table
Primary keys cannot have NULL values
❖ Candidate Key –
It is an attribute or a set of attributes or keys participating for
Primary Key, to uniquely identify each record in that table.
DATABASECONCEPTS
Those are capable of becoming primary keys.
Multiple Candidates keys are allowed in a table.
Alternate Key –
Out of all candidate keys, only one gets selected as
primary key, remaining keys are known as alternate or
secondary keys.
❖ Foreign Key –
Foreign keys are the columns of a table that points to the primary
key of another table. They act as a cross-reference between
tables.
DATABASECONCEPTS