SlideShare a Scribd company logo
1 of 53
Download to read offline
Office packages
DBMS
DATA BASE MANAGEMENT SYSTEM
• DATA: MEANINGLESS (10,20,30, TASHI)
• INFORMATION: MEANINGFUL (TASHI HAS
SCORED 10, 20 AND 30 MARKS IN EXAM)
DATA🡪 process 🡪 INFORMATION 🡪
DATABASE (Collection of information & data)
For example
Library
• The system or program where all the data
regarding the books and its entries are stored in
database.
School Record :
Storage of student record
Data Base
• Data is a collection of data, which is stored in
a systematic manner, i.e. , in the form of
tables so that we can retrieve and manipulate
the information quickly and efficiently from a
large set of data.
• A database consists of one or more tables. A
table holds information in the form of rows
and columns.
ROLL
NO
NAME MARKS
1 Tashi 25
2 Lhamo 35
3 Nyima 45
Fields/ Attributes/Column Headings
Records/
Tuples/ rows
Data
Database
• Rows are referred to as records. A record is a set
of related information that belongs to a
particular object. A single record is also known
as tuple
• Columns are referred to as fields. A fields
describes a specific property of a record, that is
why a field is also known as an attribute.
• A set of characters that represents a valid values
are known as data.
A database is basically used by developer ,
administrator , and the end users.
Database
DBMS
END USER
ADMINISTRATOR
DESIGNER Person who design the database
Person who provides manage, access to others (
The person who uses
REVISION
• Data (raw facts and figures, unprocessed,
meaningless)
• Information (meaningful/ processed
• Database (place where data are stored,
collection of tables, table of combination of
records and tuples)
• Databse management system (software to
handles the data)
Database Management System
• Database Management system (DBMS) is a
computerised record keeping system or a
software that enabls you to create, store,
modify and extract information from a
database.
• It allows different use application program to
access the same database, concurrently.
• Data handling using becomes fast and
efficient
Advantages
• Enforcement of data standards (use standard
formats, e.g. dd/mm/yyyy)
• Data availability
• Reduced data redundancy (duplication)
• Minimized data inconsistency (accuracy)
• Data concurrency (accessing data simultaneously)
• Ensure data security
• Backup and recovery management
Different types of Database
Management System
• Relational Database Management System
(MS Access program, Data stored in table)
• Network Database Management System
(data connected in different area via links)
• Hierarchical Database Management System
(tree link structure arranged)
• Object Oriented Database Management System
(data recorded in object form used in other
programming language)
Relational Databse Mangement
System
● Relational database management system (RDBMS) is a
type of DBMS software that uses the Relational
Database (RDB) model for its database.
● RDBMS provides the features to create update, and
administer a relational database. this makes it easy to
search and retrieve the data within the database and
ensures that data integrity is maintained.
● the relational structure makes it possible to run
queries across multiple tables at once. some examples
of RDBMS are Oracle, LibreOffice Base, MS Access,
Sybase, MySQL and MS SQL.
Concept of Keys
● a key plates an important role in relational
database. it is used for identifying unique
records (rows or tuples) from a table.
● it also establishes a relationship among
the tables.
● relationships are links that associate a
field in one table with a field in another
table.
Primary Key
● a primary key is a set of one of more fields
that uniquely identifies each record in a
table
● it does not contain any duplicate data
● a table can have only one primary key.
● the value in the primary key field is
different for every tuple this helps in
uniquely identifying the records
● primary key field should be unique
● the primary key field cannot be NULL, i.e.
every row must have a value
● the value in a primary key field can never be
modified or updated if any foreign key refers
to the primary key.
Rules of primary key
Composite key
A composite key or composite primary key refers
to a combination of two or more attributes
(fields) that uniquely identify the records in a
table . it may be a candidate key or primary key.
Customer_ID Product_ID Product count
001 p001 158
002 p002 356
001 p003 65
Foreign key
● in other words, it consists of one or
more fields whose value matches
with a primary key in another table.
● basically, a foreign key in one table
is use to point at a primary key in
another table. it acts as a cross-
reference between the tables.
Candidate Key
A table might have one or more fields may
uniquely identify the records(tuples). Such fields
are called candidate key as they are eligible to
become a primary key. Thus, a table can have
more than one candidate key.
Ms Access
• TABLE : to store the complete data
• QUERIES : to ask questions from the
records
• FORMS: accepts data from the user and
inserts in the corresponding table or
query.
• REPORTS: to display the selected data in a
printable format
CREATING AND USING TABLE
GO TO MS ACCESS
EXTENSIONS ARE
•Open office: .odb
•Ms access: .accdb
Creating tables
Design View
Datasheet View
Data type
Field Name
REFERENTIAL INTEGRITY- rule
• It states that a foreign key must have a primary
key, i.e , all its references must be valid and the
users cannot accidently delete or modify data
• table can have only one matching
record and vice versa
• a record of one table is associated
with several matching records.
• multiple records of one table are
associated with several records.
One to One
One to Many
Many to Many
Using Queries
• Retrieve data using Queries
• Queries are based on tables and the result of
a query is also displayed in the form of table.
• Using Query Wizard
• Using Query Design
Query using Design View
WILDCARDS
Wild cards are the special characters that are used
as substitutes for one or more characters in a
string(text value).
Two wildcards often used are
* and ?
*
?
[ ]
!
-
Using Like keyword
Type here
An then click on run Option
CRITERIA
BUILT IN FUNCTIONS
STRUCTURED QUERY LANGUAGE(SQL)
SQL is the language used in RDBMS for
writing queries. Using SQL , a user can
create queries to fetch and manipulate the
data of the database.
Two types
• Data Definition Language (DDL)commands
• Data Manipulation Language(DML)
commands
• Go to SQL VIEW
SELECT * FROM STUDENT;
SELECT * FROM STUDENT ORDER BY
std_name ASC;
SELECT * FROM STUDENT ORDER BY
std_name DESC;
Names and other details in ascending order
Names and other in descending order
SELECT
SELECT
std_roll,
Std_name,
std_DOB from STUDENT;
SELECT stud_roll,stud_name,stud_fee from
STUDENTS;
SELECT stud_roll,stud_name,stud_fee FROM STUDENTS
WHERE stud_birthplace='Delhi';
WHERE clause
ORDER BY clause
SELECT stud_roll,stud_name,stud_fee FROM
STUDENTS WHERE stud_fee=(5000);
USING LIKE COMMAND
select
stud_roll,stud_name
from students where
stud_name like 'T*';
DATA TYPES
• VARCHAR(size)
A VARIABLE length string (can contain letters,
numbers, and special characters).
The size parameter specifies the maximum string
length in characters - can be from 0 to 65535
• INTEGER(size)
Equal to INT(size)
• DATE
A date. Format: YYYY-MM-DD. The supported
range is from '1000-01-01' to '9999-12-31'
CREATE TABLE table_name
(
Field_name1 Datatype,
Field_name2 Datatype
Field_name3 Datatype,
);
Table_name
Field_name1 Fieldname_2
101 Dolma
To create a table
create table student
(
fname varchar(20),
mname varchar(20)
);
create table student
(
stud_id integer not null primary key,
stud_father varchar(20),
stud_mother varchar(20),
address varchar(20),
result varchar(20)
)
INSERT values in table
insert into students(stud_roll,stud_name)
values(1001,’Tsering Dolma');
Table name
Field name
Update STUDENTS
Set stud_name=Lhamo dolma where
stud_id=103;
UPDATE values in table
Delete from STUDENTS
Where stud_id=103;
DELETE values in table
ALTER
alter table students
add lastschool
varchar(20);
Drop table STUDENTS
DROP
FORMS

More Related Content

Similar to Data Base Management System.pdf

Similar to Data Base Management System.pdf (20)

Introduction to ms access database
Introduction to ms access databaseIntroduction to ms access database
Introduction to ms access database
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 
database concepts.pptx
database concepts.pptxdatabase concepts.pptx
database concepts.pptx
 
sql-commands.pdf
sql-commands.pdfsql-commands.pdf
sql-commands.pdf
 
Sql commands
Sql commandsSql commands
Sql commands
 
Sql commands
Sql commandsSql commands
Sql commands
 
SQL_Part1
SQL_Part1SQL_Part1
SQL_Part1
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Database Management Systems.pptx
Database Management Systems.pptxDatabase Management Systems.pptx
Database Management Systems.pptx
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
 
Database system concepts
Database system conceptsDatabase system concepts
Database system concepts
 
Database Concepts.pptx
Database Concepts.pptxDatabase Concepts.pptx
Database Concepts.pptx
 
Relational Database.pptx
Relational Database.pptxRelational Database.pptx
Relational Database.pptx
 
Introduction of DBMS
Introduction of DBMSIntroduction of DBMS
Introduction of DBMS
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
 
Software Database and Testing
Software Database and TestingSoftware Database and Testing
Software Database and Testing
 
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
DATABASE CONCEPTS AND PRACTICAL EXAMPLESDATABASE CONCEPTS AND PRACTICAL EXAMPLES
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
 
Relational Database Language.pptx
Relational Database Language.pptxRelational Database Language.pptx
Relational Database Language.pptx
 

More from TENZING LHADON

NETWORK FUNDAMENTALS, CLASS X, 402 , CBSE
NETWORK FUNDAMENTALS, CLASS X, 402 , CBSENETWORK FUNDAMENTALS, CLASS X, 402 , CBSE
NETWORK FUNDAMENTALS, CLASS X, 402 , CBSETENZING LHADON
 
Entrepreneurship Skill, Class X, CBSE 402
Entrepreneurship Skill, Class X, CBSE 402Entrepreneurship Skill, Class X, CBSE 402
Entrepreneurship Skill, Class X, CBSE 402TENZING LHADON
 
ONLINE TRANSACTION & Blogging.pdf
ONLINE TRANSACTION & Blogging.pdfONLINE TRANSACTION & Blogging.pdf
ONLINE TRANSACTION & Blogging.pdfTENZING LHADON
 
COMMUNICATION SKILLS.pptx
COMMUNICATION SKILLS.pptxCOMMUNICATION SKILLS.pptx
COMMUNICATION SKILLS.pptxTENZING LHADON
 
Cyber ethics(CBSE Class X), Computer Application
Cyber ethics(CBSE Class X), Computer ApplicationCyber ethics(CBSE Class X), Computer Application
Cyber ethics(CBSE Class X), Computer ApplicationTENZING LHADON
 
Communication channels
Communication channelsCommunication channels
Communication channelsTENZING LHADON
 
Components of computer
Components of computerComponents of computer
Components of computerTENZING LHADON
 

More from TENZING LHADON (15)

NETWORK FUNDAMENTALS, CLASS X, 402 , CBSE
NETWORK FUNDAMENTALS, CLASS X, 402 , CBSENETWORK FUNDAMENTALS, CLASS X, 402 , CBSE
NETWORK FUNDAMENTALS, CLASS X, 402 , CBSE
 
Entrepreneurship Skill, Class X, CBSE 402
Entrepreneurship Skill, Class X, CBSE 402Entrepreneurship Skill, Class X, CBSE 402
Entrepreneurship Skill, Class X, CBSE 402
 
WEB SECURITY.pdf
WEB SECURITY.pdfWEB SECURITY.pdf
WEB SECURITY.pdf
 
ONLINE TRANSACTION & Blogging.pdf
ONLINE TRANSACTION & Blogging.pdfONLINE TRANSACTION & Blogging.pdf
ONLINE TRANSACTION & Blogging.pdf
 
ICT Skills.pdf
ICT Skills.pdfICT Skills.pdf
ICT Skills.pdf
 
Entrepreneurship.pdf
Entrepreneurship.pdfEntrepreneurship.pdf
Entrepreneurship.pdf
 
EXcel_Hyperlink.pdf
EXcel_Hyperlink.pdfEXcel_Hyperlink.pdf
EXcel_Hyperlink.pdf
 
GREEN SKILLS.pptx
GREEN SKILLS.pptxGREEN SKILLS.pptx
GREEN SKILLS.pptx
 
self management.pptx
self management.pptxself management.pptx
self management.pptx
 
COMMUNICATION SKILLS.pptx
COMMUNICATION SKILLS.pptxCOMMUNICATION SKILLS.pptx
COMMUNICATION SKILLS.pptx
 
Cyber ethics(CBSE Class X), Computer Application
Cyber ethics(CBSE Class X), Computer ApplicationCyber ethics(CBSE Class X), Computer Application
Cyber ethics(CBSE Class X), Computer Application
 
Devices
DevicesDevices
Devices
 
Network
NetworkNetwork
Network
 
Communication channels
Communication channelsCommunication channels
Communication channels
 
Components of computer
Components of computerComponents of computer
Components of computer
 

Recently uploaded

AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 

Recently uploaded (20)

AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 

Data Base Management System.pdf

  • 3. • DATA: MEANINGLESS (10,20,30, TASHI) • INFORMATION: MEANINGFUL (TASHI HAS SCORED 10, 20 AND 30 MARKS IN EXAM) DATA🡪 process 🡪 INFORMATION 🡪 DATABASE (Collection of information & data)
  • 4. For example Library • The system or program where all the data regarding the books and its entries are stored in database. School Record : Storage of student record
  • 5. Data Base • Data is a collection of data, which is stored in a systematic manner, i.e. , in the form of tables so that we can retrieve and manipulate the information quickly and efficiently from a large set of data. • A database consists of one or more tables. A table holds information in the form of rows and columns.
  • 6. ROLL NO NAME MARKS 1 Tashi 25 2 Lhamo 35 3 Nyima 45 Fields/ Attributes/Column Headings Records/ Tuples/ rows Data
  • 7. Database • Rows are referred to as records. A record is a set of related information that belongs to a particular object. A single record is also known as tuple • Columns are referred to as fields. A fields describes a specific property of a record, that is why a field is also known as an attribute. • A set of characters that represents a valid values are known as data.
  • 8. A database is basically used by developer , administrator , and the end users. Database DBMS END USER ADMINISTRATOR DESIGNER Person who design the database Person who provides manage, access to others ( The person who uses
  • 9. REVISION • Data (raw facts and figures, unprocessed, meaningless) • Information (meaningful/ processed • Database (place where data are stored, collection of tables, table of combination of records and tuples) • Databse management system (software to handles the data)
  • 10. Database Management System • Database Management system (DBMS) is a computerised record keeping system or a software that enabls you to create, store, modify and extract information from a database. • It allows different use application program to access the same database, concurrently. • Data handling using becomes fast and efficient
  • 11. Advantages • Enforcement of data standards (use standard formats, e.g. dd/mm/yyyy) • Data availability • Reduced data redundancy (duplication) • Minimized data inconsistency (accuracy) • Data concurrency (accessing data simultaneously) • Ensure data security • Backup and recovery management
  • 12. Different types of Database Management System • Relational Database Management System (MS Access program, Data stored in table) • Network Database Management System (data connected in different area via links) • Hierarchical Database Management System (tree link structure arranged) • Object Oriented Database Management System (data recorded in object form used in other programming language)
  • 13. Relational Databse Mangement System ● Relational database management system (RDBMS) is a type of DBMS software that uses the Relational Database (RDB) model for its database. ● RDBMS provides the features to create update, and administer a relational database. this makes it easy to search and retrieve the data within the database and ensures that data integrity is maintained. ● the relational structure makes it possible to run queries across multiple tables at once. some examples of RDBMS are Oracle, LibreOffice Base, MS Access, Sybase, MySQL and MS SQL.
  • 14. Concept of Keys ● a key plates an important role in relational database. it is used for identifying unique records (rows or tuples) from a table. ● it also establishes a relationship among the tables. ● relationships are links that associate a field in one table with a field in another table.
  • 15. Primary Key ● a primary key is a set of one of more fields that uniquely identifies each record in a table ● it does not contain any duplicate data ● a table can have only one primary key. ● the value in the primary key field is different for every tuple this helps in uniquely identifying the records
  • 16. ● primary key field should be unique ● the primary key field cannot be NULL, i.e. every row must have a value ● the value in a primary key field can never be modified or updated if any foreign key refers to the primary key. Rules of primary key
  • 17. Composite key A composite key or composite primary key refers to a combination of two or more attributes (fields) that uniquely identify the records in a table . it may be a candidate key or primary key. Customer_ID Product_ID Product count 001 p001 158 002 p002 356 001 p003 65
  • 18. Foreign key ● in other words, it consists of one or more fields whose value matches with a primary key in another table. ● basically, a foreign key in one table is use to point at a primary key in another table. it acts as a cross- reference between the tables.
  • 19.
  • 20. Candidate Key A table might have one or more fields may uniquely identify the records(tuples). Such fields are called candidate key as they are eligible to become a primary key. Thus, a table can have more than one candidate key.
  • 21. Ms Access • TABLE : to store the complete data • QUERIES : to ask questions from the records • FORMS: accepts data from the user and inserts in the corresponding table or query. • REPORTS: to display the selected data in a printable format
  • 22. CREATING AND USING TABLE GO TO MS ACCESS EXTENSIONS ARE •Open office: .odb •Ms access: .accdb
  • 23. Creating tables Design View Datasheet View Data type Field Name
  • 24. REFERENTIAL INTEGRITY- rule • It states that a foreign key must have a primary key, i.e , all its references must be valid and the users cannot accidently delete or modify data
  • 25. • table can have only one matching record and vice versa • a record of one table is associated with several matching records. • multiple records of one table are associated with several records.
  • 29. Using Queries • Retrieve data using Queries • Queries are based on tables and the result of a query is also displayed in the form of table. • Using Query Wizard • Using Query Design
  • 31. WILDCARDS Wild cards are the special characters that are used as substitutes for one or more characters in a string(text value). Two wildcards often used are * and ? * ? [ ] ! -
  • 32.
  • 34. Type here An then click on run Option CRITERIA
  • 35.
  • 37. STRUCTURED QUERY LANGUAGE(SQL) SQL is the language used in RDBMS for writing queries. Using SQL , a user can create queries to fetch and manipulate the data of the database. Two types • Data Definition Language (DDL)commands • Data Manipulation Language(DML) commands
  • 38. • Go to SQL VIEW
  • 39. SELECT * FROM STUDENT; SELECT * FROM STUDENT ORDER BY std_name ASC; SELECT * FROM STUDENT ORDER BY std_name DESC; Names and other details in ascending order Names and other in descending order
  • 41. SELECT stud_roll,stud_name,stud_fee from STUDENTS; SELECT stud_roll,stud_name,stud_fee FROM STUDENTS WHERE stud_birthplace='Delhi'; WHERE clause ORDER BY clause SELECT stud_roll,stud_name,stud_fee FROM STUDENTS WHERE stud_fee=(5000);
  • 42. USING LIKE COMMAND select stud_roll,stud_name from students where stud_name like 'T*';
  • 43. DATA TYPES • VARCHAR(size) A VARIABLE length string (can contain letters, numbers, and special characters). The size parameter specifies the maximum string length in characters - can be from 0 to 65535 • INTEGER(size) Equal to INT(size) • DATE A date. Format: YYYY-MM-DD. The supported range is from '1000-01-01' to '9999-12-31'
  • 44. CREATE TABLE table_name ( Field_name1 Datatype, Field_name2 Datatype Field_name3 Datatype, ); Table_name Field_name1 Fieldname_2 101 Dolma
  • 45. To create a table create table student ( fname varchar(20), mname varchar(20) ); create table student ( stud_id integer not null primary key, stud_father varchar(20), stud_mother varchar(20), address varchar(20), result varchar(20) )
  • 46.
  • 47. INSERT values in table insert into students(stud_roll,stud_name) values(1001,’Tsering Dolma'); Table name Field name
  • 48. Update STUDENTS Set stud_name=Lhamo dolma where stud_id=103; UPDATE values in table
  • 49. Delete from STUDENTS Where stud_id=103; DELETE values in table
  • 50. ALTER alter table students add lastschool varchar(20);
  • 52.
  • 53. FORMS