DBMS-Session1
DBMS-Session1
Class-X(Information Technology)
Topics:
• Introduction
• What is Data?
• What is Information?
• What is Database?
• Database Server
• RDBMS
• Record
• Constraint
• Data :
– A collection of unorganized facts and has no
meaning on its own.
– Understanding is difficult.
– In the form of number,characters,symbols,audio
etc.
• Information :
- The processed data which has a specific meaning
and its it is useful for decision making.
-- Understanding is easy.
Database Concepts
• Dictionary
• Library,
• Railways
Database management System
• DBMS stands for Database Management System.
• DBMS is a software system for creating, organizing and
managing the database.
• It provides an environment to the user to perform
operations on the database for creation, insertion, deletion,
updating and retrieval of data.
Example :
• Data can be organized into two types:
1.Primary key
• Primary key Contain Unique value(i.e. no duplicate value ) and no Null
Value.
• Ex: In the following table roll_no is primary key column.
• This unique field is called the Primary Key (PK).
• Primary Keys are also indexed in the database, making it faster for the
database to search for a record.
Roll_no Name Class Section City
101 Rahul 10 A Vashi
102 Sachin 10 A Nerul
103 Virat 10 A Juinagr
104 Ashwin 10 A Sanpada
2.Composite Key
• When primary key constraint is applied on one or more
columns then it is known as Composite Key.
• A key that consist of more than one attribute uniquely
identifies rows in a table.
• Example : Here Cust_id and order_id are two uniquely
identified key. So order_id is composite key.
Cust_id Order_id Product_code Total
C_101 O_988 8878 12
C_102 O_765 8778 23
C_103 O_455 6767 34
Foreign key
• A foreign key is a key used to link two tables together. This is sometimes also called
as a referencing key.
• A Foreign Key is a column or a combination of columns whose values match a
Primary Key in a different table.
• The relationship between 2 tables matches the Primary Key in one of the tables
with a Foreign Key in the second table.
• .
• Primary key Second table:
• Numeric Types
• Alphanumeric Types
• Binary Types
• Date time
• Other Variable types
• Numeric Types:
• Numeric data types are used for describing numeric values for
the field used in the table of a database.
• Numeric data types in a database can be used for storing
information such as mobile number, roll number, door number,
year of school admission, statistical values, etc.
• The different types of numeric data types available are listed
here.
• Alphanumeric type:
• Binary Types:
• Binary data types are used for storing data in binary
formats. Binary data types in a database can be
using for storing photos, music files, etc.
• In general, files of any format can be stored using
the binary data type. The different types of binary
data types available are listed here.
• Date time:
• Date time data types are used for describing date and time
values for the field used in the table of a database. Date time
data types in a database can be used for storing information
such as date of birth, date of admission, date of product sale,
etc.
• The different types of date time data types
available are listed here.
What we have learned Today?
• Thank you