SlideShare a Scribd company logo
Er. Nawaraj Bhandari
Database
Module Database : Exam Pattern
 Global Exam : 50%
 Global Assignment : 50%
Module Database : Software
 MySQL
 Oracle
 SQL Server
 Access
What is a database?
“A database is a computerised record keeping
system”
Record Keeping Systems
 File system on a computer
 Word document
 Excel Spreadsheet
 Access database
 Manual card index file
 Files on a USB stick
 Are these all databases?
Database Functions
 Databases should be able to:
 Store
 Manipulate
 Retrieve
Database Size - 1
 Databases range in size:
 Single user databases on a PC
 Small office database with everyone doing the same
sorts of tasks
 Medium size database system with core data but
people doing different tasks
 Corporate databases spread over many sites
 Very large databases and data-warehouses
But databases aren’t like buckets!
 Database systems are not
just a mass of data
 It isn’t just about what they
can hold
 They are organised
 So we need a more precise
definition
More Detailed Definition
“We define a database as an organised collection
of logically related data”.
What does this mean?
 Organised
 Logically related
 Data
Organised
 Data is structured so as to be easily stored,
manipulated and retrieved by users.
 It is no good just having some data if we don’t
know how to get it in order to look at it and use it.
Related
 Pieces of data do not exist in isolation
 For example:
 In a salesperson’s database, it is natural for the
customer’s name and the customer’s address to be
stored together
 They are related
 Together, with other data about the customer, they are
part of a meaningful set
Data
 Data are any raw facts, numbers, or text that can be processed by a
computer.
 Data can be found in different formats :
1. operational or transactional data such as, sales, cost, inventory,
payroll, and accounting
2. nonoperational data such as forecast data
3. meta data - data about the data itself, such as logical database
design or data dictionary definitions
Types of Data
1. Traditional
a. Text such as names, address etc.
b. Numbers such as age, roll number, number of friends, etc.
c. Dates such as a date of birth, college enrolled date, exam date,
etc.
2. Multi-media
a. Images
b. Sounds
c. Video
Data and Information
 There is a little distinction between ‘data’ and ‘information’
 Data are ‘raw facts’.
Bagum, Ammena 01.02.81 97327627
Ako, Sarah 08.08.81 98737373
Finkle, Clive 09.09.81 93838383
Mc Farren, Debra 01.01.80 98383837
Sinseros, Douglas 27.05.80 99344222
Information
 Information is data that has been processed in such a way that it can
increase the knowledge of the person who uses it.
Student Name Date of Birth Student ID
Bagum, Ammena 01.02.81 97327627
Ako, Sarah 08.08.81 98737373
Finkle, Clive 09.09.81 93838383
Mc Farren, Debra 01.01.80 98383837
Sinseros, Douglas 27.05.80 99344222
Information is Important
 Economically
 Politically
 Personally
 Databases are the key to information.
SQL
Structured Query Language
SQL is a Standard
 SQL(Structural Query Language) is an ANSI (American National
Standards Institute) standard computer language for accessing and
manipulating database systems.
 SQL statements are used to retrieve and update data in a database.
 SQL works with database programs like MS Access, DB2, Informix, MS
SQL Server, Oracle, Sybase, etc.
SQL Database Tables
 A database most often contains one or more tables. Each table is
identified by a name (e.g. “Workers" or “Departments"). Tables
contain records (rows) with data.
 Below is an example of a table called “Workers":
LastName FirstName Jobtitle Age
Surani Lawrence Manager 56
Argo Emily 32
Villa Ahmed Packer 25
Manager
 With SQL, we can query a database and have a result set returned.
 A query like this:
 SELECT LastName FROM workers
 Gives a result set like this:
SQL Queries
LastName
Surani
Argo
Villa
Select all record from workers tables
 SELECT * FROM workers
SQL Queries
• Data Definition Language(DDL)
• Data Manipulation Language (DML)
• Data Control Language (DCL)
• Transaction Control (TCL)
SQL COMMANDS
DDL statements are used to define the database structure or
schema
Data Definition Language(DDL)
• CREATE: to create objects in the database
• ALTER: updates the structure of the database
• DROP - delete objects from the database
• TRUNCATE - remove all records from a table, including all
spaces allocated for the records are removed
• COMMENT - add comments to the data dictionary
DML statements are used for managing data within schema
objects.
Data Manipulation Language (DML)
• SELECT - retrieve data from the a database
• INSERT - insert data into a table
• UPDATE - updates existing data within a table
• DELETE - deletes all records from a table, the space for
the records remain
• MERGE - UPSERT operation (insert or update)
• CALL - call a PL/SQL or Java subprogram
• EXPLAIN PLAN - explain access path to data
• LOCK TABLE - control concurrency
Data Control Language (DCL)
• GRANT - gives user's access privileges to database
• REVOKE - withdraw access privileges given with the
GRANT command
TCL statements are used to manage the changes made by DML
statements. It allows statements to be grouped together into
logical transactions.
Transaction Control Language (TCL)
• COMMIT - save work done
• ROLLBACK - restore database to original since the last
COMMIT
• SAVEPOINT - identify a point in a transaction to which
you can later roll back
• SET TRANSACTION - Change transaction options like
isolation level and what rollback
segment to use
ANY QUESTIONS?

More Related Content

What's hot

SQL Queries
SQL QueriesSQL Queries
SQL Queries
Nilt1234
 
Sql basics and DDL statements
Sql basics and DDL statementsSql basics and DDL statements
Sql basics and DDL statements
Mohd Tousif
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
Bharat Kalia
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
Bilal Arshad
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
Vibrant Technologies & Computers
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
Arpee Callejo
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
Dhani Ahmad
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
Anusha sivakumar
 
DBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCLDBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCL
Sreedhar Chowdam
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
BG Java EE Course
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
Shrija Madhu
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)
Ishucs
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
Yogiji Creations
 
Unit 4 plsql
Unit 4  plsqlUnit 4  plsql
Unit 4 plsql
DrkhanchanaR
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
Rumman Ansari
 
Structured query language
Structured query languageStructured query language
Structured query language
Rashid Ansari
 
Database Objects
Database ObjectsDatabase Objects
Database Objects
Salman Memon
 
Database basics
Database basicsDatabase basics
Database basics
prachin514
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
Sachidananda M H
 

What's hot (20)

SQL Queries
SQL QueriesSQL Queries
SQL Queries
 
Sql basics and DDL statements
Sql basics and DDL statementsSql basics and DDL statements
Sql basics and DDL statements
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts PL/SQL Introduction and Concepts
PL/SQL Introduction and Concepts
 
Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)Introduction to oracle database (basic concepts)
Introduction to oracle database (basic concepts)
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
 
DBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCLDBMS Notes: DDL DML DCL
DBMS Notes: DDL DML DCL
 
Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 
Sql(structured query language)
Sql(structured query language)Sql(structured query language)
Sql(structured query language)
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
 
Unit 4 plsql
Unit 4  plsqlUnit 4  plsql
Unit 4 plsql
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
Structured query language
Structured query languageStructured query language
Structured query language
 
Database Objects
Database ObjectsDatabase Objects
Database Objects
 
Database basics
Database basicsDatabase basics
Database basics
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
 

Viewers also liked

Crosstab query techniques
Crosstab query techniquesCrosstab query techniques
Crosstab query techniquesaabaap
 
computer software
computer softwarecomputer software
computer softwareRiya Gupta
 
Microsoft access 2007_tutorial
Microsoft access 2007_tutorialMicrosoft access 2007_tutorial
Microsoft access 2007_tutorialAchemm Net
 
MS Access 2007 in ITT
MS Access 2007 in ITTMS Access 2007 in ITT
MS Access 2007 in ITT
pillai college
 
Users Guide To Microsoft Word Tables
Users Guide To Microsoft Word TablesUsers Guide To Microsoft Word Tables
Users Guide To Microsoft Word Tables
Madhubanti Dasgupta
 
Ch03 cmpt110
Ch03 cmpt110Ch03 cmpt110
Ch03 cmpt110
smccblackboard
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationshipswmassie
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tablesJhen Articona
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
Pyi Soe
 
MS Word 2007 insert tables
MS Word 2007 insert tablesMS Word 2007 insert tables
MS Word 2007 insert tablesVTC
 
Access 2007
Access 2007Access 2007
Access 2007
rupalidhir
 
The Power Of Mail Merge!
The Power Of Mail Merge!The Power Of Mail Merge!
The Power Of Mail Merge!
Rina Banerjee
 
Mail merge made easy
Mail merge made easyMail merge made easy
Mail merge made easy
Roel Palmaers
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
jigeno
 
Online Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement DcoumentOnline Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement DcoumentH2Kinfosys
 
Mail Merge in Microsoft Word
Mail Merge in Microsoft WordMail Merge in Microsoft Word
Mail Merge in Microsoft Word
Neelanjan Bhattacharyya
 
Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
Ramesh Pant
 

Viewers also liked (20)

Software
SoftwareSoftware
Software
 
SQL
SQL SQL
SQL
 
Crosstab query techniques
Crosstab query techniquesCrosstab query techniques
Crosstab query techniques
 
computer software
computer softwarecomputer software
computer software
 
Microsoft access 2007_tutorial
Microsoft access 2007_tutorialMicrosoft access 2007_tutorial
Microsoft access 2007_tutorial
 
MS Access 2007 in ITT
MS Access 2007 in ITTMS Access 2007 in ITT
MS Access 2007 in ITT
 
Tables
TablesTables
Tables
 
Users Guide To Microsoft Word Tables
Users Guide To Microsoft Word TablesUsers Guide To Microsoft Word Tables
Users Guide To Microsoft Word Tables
 
Ch03 cmpt110
Ch03 cmpt110Ch03 cmpt110
Ch03 cmpt110
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tables
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
MS Word 2007 insert tables
MS Word 2007 insert tablesMS Word 2007 insert tables
MS Word 2007 insert tables
 
Access 2007
Access 2007Access 2007
Access 2007
 
The Power Of Mail Merge!
The Power Of Mail Merge!The Power Of Mail Merge!
The Power Of Mail Merge!
 
Mail merge made easy
Mail merge made easyMail merge made easy
Mail merge made easy
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Online Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement DcoumentOnline Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement Dcoument
 
Mail Merge in Microsoft Word
Mail Merge in Microsoft WordMail Merge in Microsoft Word
Mail Merge in Microsoft Word
 
Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
 

Similar to Database

Oracle tutorial
Oracle tutorialOracle tutorial
Oracle tutorial
Lalit Shaktawat
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
milanmehta7
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
Rupali Rana
 
6.2 software
6.2 software6.2 software
Advanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptxAdvanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptx
EllenGracePorras
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
MR Z
 
DATABASE ADMINSTRATION
DATABASE ADMINSTRATION DATABASE ADMINSTRATION
DATABASE ADMINSTRATION
Nusrat Gulbarga
 
Database management system
Database management systemDatabase management system
Database management system
khagendrabasnet4
 
database management system (DBMS)
database management system (DBMS)database management system (DBMS)
database management system (DBMS)
BigyanDhital1
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
MrjJoker1
 
database1.pdf
database1.pdfdatabase1.pdf
database1.pdf
prashanna13
 
Database systems Handbook 2V.pdf
Database systems Handbook 2V.pdfDatabase systems Handbook 2V.pdf
Database systems Handbook 2V.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook.pdf
Database systems Handbook.pdfDatabase systems Handbook.pdf
Database systems Handbook.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook.pdf
Database systems Handbook.pdfDatabase systems Handbook.pdf
Database systems Handbook.pdf
Bahria University Islamabad, Pakistan
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
Dios Kurniawan
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
Tushar Wagh
 

Similar to Database (20)

Oracle tutorial
Oracle tutorialOracle tutorial
Oracle tutorial
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
 
6.2 software
6.2 software6.2 software
6.2 software
 
Advanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptxAdvanced Database Systems - Presentation 1 with quiz.pptx
Advanced Database Systems - Presentation 1 with quiz.pptx
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
 
DATABASE ADMINSTRATION
DATABASE ADMINSTRATION DATABASE ADMINSTRATION
DATABASE ADMINSTRATION
 
Database management system
Database management systemDatabase management system
Database management system
 
database management system (DBMS)
database management system (DBMS)database management system (DBMS)
database management system (DBMS)
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 
database1.pdf
database1.pdfdatabase1.pdf
database1.pdf
 
Database systems Handbook 2V.pdf
Database systems Handbook 2V.pdfDatabase systems Handbook 2V.pdf
Database systems Handbook 2V.pdf
 
Dbms Basics
Dbms BasicsDbms Basics
Dbms Basics
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
Database systems Handbook.pdf
Database systems Handbook.pdfDatabase systems Handbook.pdf
Database systems Handbook.pdf
 
Database systems Handbook.pdf
Database systems Handbook.pdfDatabase systems Handbook.pdf
Database systems Handbook.pdf
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
 

More from Bhandari Nawaraj

Implementation
ImplementationImplementation
Implementation
Bhandari Nawaraj
 
Supporting Transactions
Supporting TransactionsSupporting Transactions
Supporting Transactions
Bhandari Nawaraj
 
Database Design
Database DesignDatabase Design
Database Design
Bhandari Nawaraj
 
The Relational Model
The Relational ModelThe Relational Model
The Relational Model
Bhandari Nawaraj
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
Bhandari Nawaraj
 
Dbms
DbmsDbms

More from Bhandari Nawaraj (7)

Implementation
ImplementationImplementation
Implementation
 
Supporting Transactions
Supporting TransactionsSupporting Transactions
Supporting Transactions
 
Database Design
Database DesignDatabase Design
Database Design
 
SQL
SQL SQL
SQL
 
The Relational Model
The Relational ModelThe Relational Model
The Relational Model
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
Dbms
DbmsDbms
Dbms
 

Recently uploaded

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 

Recently uploaded (20)

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 

Database

  • 2. Module Database : Exam Pattern  Global Exam : 50%  Global Assignment : 50%
  • 3. Module Database : Software  MySQL  Oracle  SQL Server  Access
  • 4. What is a database? “A database is a computerised record keeping system”
  • 5. Record Keeping Systems  File system on a computer  Word document  Excel Spreadsheet  Access database  Manual card index file  Files on a USB stick  Are these all databases?
  • 6. Database Functions  Databases should be able to:  Store  Manipulate  Retrieve
  • 7. Database Size - 1  Databases range in size:  Single user databases on a PC  Small office database with everyone doing the same sorts of tasks  Medium size database system with core data but people doing different tasks  Corporate databases spread over many sites  Very large databases and data-warehouses
  • 8. But databases aren’t like buckets!  Database systems are not just a mass of data  It isn’t just about what they can hold  They are organised  So we need a more precise definition
  • 9. More Detailed Definition “We define a database as an organised collection of logically related data”.
  • 10. What does this mean?  Organised  Logically related  Data
  • 11. Organised  Data is structured so as to be easily stored, manipulated and retrieved by users.  It is no good just having some data if we don’t know how to get it in order to look at it and use it.
  • 12. Related  Pieces of data do not exist in isolation  For example:  In a salesperson’s database, it is natural for the customer’s name and the customer’s address to be stored together  They are related  Together, with other data about the customer, they are part of a meaningful set
  • 13. Data  Data are any raw facts, numbers, or text that can be processed by a computer.  Data can be found in different formats : 1. operational or transactional data such as, sales, cost, inventory, payroll, and accounting 2. nonoperational data such as forecast data 3. meta data - data about the data itself, such as logical database design or data dictionary definitions
  • 14. Types of Data 1. Traditional a. Text such as names, address etc. b. Numbers such as age, roll number, number of friends, etc. c. Dates such as a date of birth, college enrolled date, exam date, etc. 2. Multi-media a. Images b. Sounds c. Video
  • 15. Data and Information  There is a little distinction between ‘data’ and ‘information’  Data are ‘raw facts’. Bagum, Ammena 01.02.81 97327627 Ako, Sarah 08.08.81 98737373 Finkle, Clive 09.09.81 93838383 Mc Farren, Debra 01.01.80 98383837 Sinseros, Douglas 27.05.80 99344222
  • 16. Information  Information is data that has been processed in such a way that it can increase the knowledge of the person who uses it. Student Name Date of Birth Student ID Bagum, Ammena 01.02.81 97327627 Ako, Sarah 08.08.81 98737373 Finkle, Clive 09.09.81 93838383 Mc Farren, Debra 01.01.80 98383837 Sinseros, Douglas 27.05.80 99344222
  • 17. Information is Important  Economically  Politically  Personally  Databases are the key to information.
  • 19. SQL is a Standard  SQL(Structural Query Language) is an ANSI (American National Standards Institute) standard computer language for accessing and manipulating database systems.  SQL statements are used to retrieve and update data in a database.  SQL works with database programs like MS Access, DB2, Informix, MS SQL Server, Oracle, Sybase, etc.
  • 20. SQL Database Tables  A database most often contains one or more tables. Each table is identified by a name (e.g. “Workers" or “Departments"). Tables contain records (rows) with data.  Below is an example of a table called “Workers": LastName FirstName Jobtitle Age Surani Lawrence Manager 56 Argo Emily 32 Villa Ahmed Packer 25 Manager
  • 21.  With SQL, we can query a database and have a result set returned.  A query like this:  SELECT LastName FROM workers  Gives a result set like this: SQL Queries LastName Surani Argo Villa
  • 22. Select all record from workers tables  SELECT * FROM workers SQL Queries
  • 23. • Data Definition Language(DDL) • Data Manipulation Language (DML) • Data Control Language (DCL) • Transaction Control (TCL) SQL COMMANDS
  • 24. DDL statements are used to define the database structure or schema Data Definition Language(DDL) • CREATE: to create objects in the database • ALTER: updates the structure of the database • DROP - delete objects from the database • TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed • COMMENT - add comments to the data dictionary
  • 25. DML statements are used for managing data within schema objects. Data Manipulation Language (DML) • SELECT - retrieve data from the a database • INSERT - insert data into a table • UPDATE - updates existing data within a table • DELETE - deletes all records from a table, the space for the records remain • MERGE - UPSERT operation (insert or update) • CALL - call a PL/SQL or Java subprogram • EXPLAIN PLAN - explain access path to data • LOCK TABLE - control concurrency
  • 26. Data Control Language (DCL) • GRANT - gives user's access privileges to database • REVOKE - withdraw access privileges given with the GRANT command
  • 27. TCL statements are used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions. Transaction Control Language (TCL) • COMMIT - save work done • ROLLBACK - restore database to original since the last COMMIT • SAVEPOINT - identify a point in a transaction to which you can later roll back • SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use

Editor's Notes

  1. Image is from http://www.public-domain-photos.com