Database Concepts
Database Concepts
CONCEPTS
INFORMATICS
PRACTICES
CLASS XI
EXAMPLES OF
COLLECTION OF DATA…
Telephone Directory
Student Attendance Register
DATABASE : Organized collection of
relevant data. It can be :
Manual / File System / Computerised
1001 PIYUSH 11 A
1002 SAMARTH 11 A
Column/Field
/Attribute 1003 SAMAIRA 11 B
•Tuple/Record: One Row of a Relation is called a
tuple.
•Attribute/Field: One column of a relation is
called an attribute.
•Domain: The Pool of values from which the
actual values of a column are selected is called
a domain.
•Degree: Number of attributes in a relation is
called its degree.
•Cardinality: Number of Rows in a relation is
called its cardinality.
•Database Engine: It is the underlying
component or set of programs used by a DBMS to
create database and handle various queries for
data retrieval and manipulation.
• Database Schema:
Database Schema is the design of a database. It is
the skeleton of the database that represents the
structure (table names and their fields/columns),
the type of data each column can hold, constraints
on the data to be stored (if any), and the
relationships among the tables.
• Meta Deta / Data Dictionary:
The database schema along with various
constraints on the data is stored by DBMS in a
database catalog or dictionary called the meta
data.
A meta-data is data about the data.
Three Important Properties of a Relation
1: Rules on an Attribute/Column/Field of the relation.
a) Each attribute in a relation has a unique name.
b) Sequence of attributes in a relation is immaterial.
2. Rules on a Tuple/Record/Row of the relation.
a) Each tuple in a relation is distinct.
b) Sequence of tuples in a relation is immaterial.
3. Rules on the State of a relation.
a) All data values in an attribute must be from the same
domain (same data type)
b) b) Each data value associated with an attribute must be
atomic (cannot be further divisible )
c) c) No attribute can have many data values in one tuple.
d) d) A special value NULL is used to represent values that
are unknown or non-applicable to certain attributes.
NULL means “no value”. Null doesn’t mean Zero.
KEYS IN AN RDBMS ENVIRONMENT
Candidate Key: In the above table, AdmNo and Mobile has unique values.
Therefore, AdmNo and Mobile are candidate keys.
Primary Key: Out of the AdmNo and Mobile, I set AdmNo as the primary key.
Alternate Key: Mobile is the Alternate key.
Non Key Attributes : Name, Class, Sec, Fname, Perc
Note: One table can have only one P.key. A table can have
multiple foreign keys.