01_RDBMS_01
01_RDBMS_01
1 I I H1 H1 Mr. Das
2 II II H2 H2 Mrs. Pal
DBMS accepts the ‘flat file’ RDBMS does not accepts this type of
data that means there is no design.
relation among different data
DBMS is used for simpler RDBMS is used for more complex
business applications applications.
Although the foreign key The foreign key concept is supported
concept is supported by by RDBMS that enforces the rules
DBMS, can not enforces the
rules
Small sets of data can be RDBMS solution is required by large
managed by DBMS. sets of data
Unit 1. RDBMS - Introduction
DBMS vs.
DBMS RDBMS RDBMS
DBMS as it is used to manage the Relationship among tables is
database maintained in a RDBMS
DBMS accepts the ‘flat file’ data RDBMS does not accepts this type
that means there is no relation of design.
among different data
DBMS is used for simpler business RDBMS is used for more complex
applications applications.
Although the foreign key concept The foreign key concept is
is supported by DBMS, can not supported by RDBMS that
enforces the rules enforces the rules
small sets of data can be managed RDBMS solution is required by
by DBMS. large sets of data
Unit 1. RDBMS - KEYS
• KEYS in RDBMS is an attribute or set of attributes which
helps you to identify a row(tuple) in a relation(table)
• In a real-world application, a table could contain thousands
of records Moreover, the records could be duplicated.
• Keys ensure that you can uniquely identify a table record
despite these challenges
• Keys help you uniquely identify a row in a table by a
combination of one or more columns in that table.
• Keys allow you to find the relation between two tables
• Key is also helpful for finding unique record or row from
the table
Unit 1. RDBMS - KEYS
• There are different types of Keys in RDBMS and
each key has it’s different functionality
1. Super Key
2. Primary Key
3. Candidate Key
4. Alternate Key
5. Foreign Key
6. Compound Key
7. Composite Key
8. Surrogate Key
Unit 1. RDBMS - KEYS
• A Super key is a group of single or multiple keys
which identifies rows in a table. A Super key may
have additional attributes that are not needed for
unique identification
EmpSRN Empid Empname
9812345098 AB05 Shown
9876512345 AB06 Roslyn
1999378900 AB07 James