Database concepts
Database
   Container for data
   Repository for storing organized
   information in the form of files




                                      MG/DB CONCEPTS/CL12
DATABASE MANAGEMENT SYSTEM
   software package that handles the
database
  interface between the user and the
  database
  organizes data as a data model
   - infrastructure of data organization

                                  MG/DB CONCEPTS/CL12
Relational Data Model
  data is organized in the form of rows
and columns as in a table
  Table - referred to as a relation
  Rows - referred to as tuples / records
   Columns - referred to as fields /
attributes


                                   MG/DB CONCEPTS/CL12
Primary key
     A field or a group of fields that is the
  unique identifier for a table
     The primary key uniquely identifies
  each row of the table
     It contains unique value for each
  record


                                    MG/DB CONCEPTS/CL12
Database is a collection of related files
   Tables consist of organized related
information
  Each table is a collection of records
   Each record contains info about a specific
entity
  The info in each record is contained in fields
  A field is the basic unit of a db
  A field can contain text, numbers, dates or
even photographs                      MG/DB CONCEPTS/CL12
A data base system has 2 parts
           The back end
           The front end
Front-end interfaces with the user
Eg> Visual Basic


The back-end holds data
Eg> IBM DB2, MS SQL Server, Oracle,
Sybase, Informix, MS Access, Ingress etc
                                     MG/DB CONCEPTS/CL12
Structured Query Language(SQL)
  Enables you to create, operate and control
  relational databases
   Used for defining and manipulating
relational databases
  Non-procedural language
   Format free language (Tabs, carriage return
and spaces can be included anywhere in the
statement)
  Case insignificant
                                      MG/DB CONCEPTS/CL12
The language consists of the following components:
Data definition component/language:
   Consists of commands that define and destroy
objects like relations/tables, indexes, views etc
Eg> Create, alter, drop etc
Data manipulation component/language:
   Consists of retrieval, manipulation and update
directives
Eg> select, insert, delete, update etc
                                          MG/DB CONCEPTS/CL12
Data control component:
  Used for defining security and access control of the
database.
  Allows the user to grant access privileges.
Eg> grant : to grant privileges to other users
revoke: to revoke privileges
The commands are also known as Transaction control
commands
Transaction control language commands : Manage changes
made by DML commands.
Commit : to make the changes permanent
                                                 MG/DB CONCEPTS/CL12

Rollback: to undo all changes.
SQL statements can be executed directly i.e interactively
or as part of an application program
Interactive SQL :
  Used to operate directly on a db to produce the required
output.
  Used by non-programmers




                                             MG/DB CONCEPTS/CL12
Embedded SQL :
   SQL statements embedded within the program
source code that is written in some programming
language / front end tool
  Used by programmers




                                          MG/DB CONCEPTS/CL12
Terminology
Cardinality : The number of tuples is called the
cardinality
Degree : The number of attributes is called the degree
Domain
   a pool of values from which specific attributes of
specific relations draw their values.
   just a data type;
   provides a set of values from which various
attributes in various relations take their actual values.
                                            MG/DB CONCEPTS/CL12
Primary key :
  a column or a group of columns in a table that
uniquely identifies records in the table.
  unique identifier for the table.
  contains unique value for each record.
Candidate key :
Attributes in a relation that can serve as primary
key are candidate keys as they are candidates for
the primary key position.
                                        MG/DB CONCEPTS/CL12
Alternate key :
A candidate key that is not the primary key is
called an alternate key.
Foreign key :
Column or a group of columns in a table that is
used to reference a primary key in another
table.




                                       MG/DB CONCEPTS/CL12
Terminology




              MG/DB CONCEPTS/CL12
MG/DB CONCEPTS/CL12
MG/DB CONCEPTS/CL12
MG/DB CONCEPTS/CL12
MG/DB CONCEPTS/CL12

More Related Content

PPTX
Sql basics
PPTX
DBMS Notes: DDL DML DCL
PPTX
Relational database revised
PPT
Relational Model in dbms & sql database
PPTX
DBMS
PPT
Ch1- Introduction to dbms
PPTX
Bank mangement system
Sql basics
DBMS Notes: DDL DML DCL
Relational database revised
Relational Model in dbms & sql database
DBMS
Ch1- Introduction to dbms
Bank mangement system

What's hot (20)

PPTX
Database Basics
PPTX
Database : Relational Data Model
PDF
Database Languages
PPT
Week 4 The Relational Data Model & The Entity Relationship Data Model
PPT
Normalization
PPTX
DBMS - Relational Model
PPTX
Key database terms
PDF
Understanding about relational database m-square systems inc
PPT
Preparing for BIT – IT2301 Database Management Systems 2001d
PPTX
PPTX
Lesson 2 network database system
PDF
Sql commands
DOCX
Types of sql commands by naveen kumar veligeti
PPT
PDF
Chapter 2 Relational Data Model-part1
PPT
D B M S Animate
PDF
Introduction to the Structured Query Language SQL
PDF
Database management system
PPTX
Structured query language(sql)ppt
PPTX
Dbms schema & instance
Database Basics
Database : Relational Data Model
Database Languages
Week 4 The Relational Data Model & The Entity Relationship Data Model
Normalization
DBMS - Relational Model
Key database terms
Understanding about relational database m-square systems inc
Preparing for BIT – IT2301 Database Management Systems 2001d
Lesson 2 network database system
Sql commands
Types of sql commands by naveen kumar veligeti
Chapter 2 Relational Data Model-part1
D B M S Animate
Introduction to the Structured Query Language SQL
Database management system
Structured query language(sql)ppt
Dbms schema & instance
Ad

Viewers also liked (20)

PPT
PPTX
Breannaaaaaa
PPT
Group 4 april 25
PPTX
Kktc meclisi (sunum)
PDF
Sql delete, truncate, drop statements
PPSX
Chapter 2
PPTX
Year 6 chapter 2
PPTX
Presentation CNC
PPTX
Databases & Challenges of a Digital Age
PDF
Chief executiveofficer%2cfm%2c hr director
PPT
Data base management ssystem
PPTX
Mariana Clímaco - Oral Presentation
PDF
SEO - Marketing pra Web
PPS
[öSs] [Sunum] DüNyanıN Hareketleri
PPT
Presentation on tablespaceses segments extends and blocks
PPT
Basic oracle for developer&beginner
PDF
CSC1100 - Chapter08 - Database Management
PDF
An Introduction to Oracle Enterprise Metadata Manager
PPS
C programming session 13
Breannaaaaaa
Group 4 april 25
Kktc meclisi (sunum)
Sql delete, truncate, drop statements
Chapter 2
Year 6 chapter 2
Presentation CNC
Databases & Challenges of a Digital Age
Chief executiveofficer%2cfm%2c hr director
Data base management ssystem
Mariana Clímaco - Oral Presentation
SEO - Marketing pra Web
[öSs] [Sunum] DüNyanıN Hareketleri
Presentation on tablespaceses segments extends and blocks
Basic oracle for developer&beginner
CSC1100 - Chapter08 - Database Management
An Introduction to Oracle Enterprise Metadata Manager
C programming session 13
Ad

Similar to Db Concepts1 (20)

PDF
Db Concepts2
PPTX
Introduction to Database system 123.pptx
PPTX
PPT SQL CLASS.pptx
PDF
rdbms-161216100344 (1).pdf
PPTX
unit 1.pptx
PPTX
Updated_rdbms-161216100344 (1).pptx
PDF
4.Database Management System.pdf
PPTX
SQL2.pptx
PPTX
lovely
PPTX
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
PDF
DBMS summer 19.pdf
PPT
Chapter02
PPTX
RDBMS BY DANISH SHAFI MIR.pptx
PPTX
Database Concepts.pptx
PPT
James hall ch 9
PPTX
DBMS Part-3.pptx
PDF
SQL Complete Tutorial. All Topics Covered
PPTX
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
PPTX
unit 1.pptx
PDF
Db Concepts2
Introduction to Database system 123.pptx
PPT SQL CLASS.pptx
rdbms-161216100344 (1).pdf
unit 1.pptx
Updated_rdbms-161216100344 (1).pptx
4.Database Management System.pdf
SQL2.pptx
lovely
Ajit_RDBMS.pptxhhhjikjhhgfhgggggghhhhhhjj
DBMS summer 19.pdf
Chapter02
RDBMS BY DANISH SHAFI MIR.pptx
Database Concepts.pptx
James hall ch 9
DBMS Part-3.pptx
SQL Complete Tutorial. All Topics Covered
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
unit 1.pptx

Recently uploaded (20)

PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PPTX
Chapter 5: Probability Theory and Statistics
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
Microsoft Excel 365/2024 Beginner's training
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPTX
Configure Apache Mutual Authentication
PDF
Architecture types and enterprise applications.pdf
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PDF
CloudStack 4.21: First Look Webinar slides
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
UiPath Agentic Automation session 1: RPA to Agents
Credit Without Borders: AI and Financial Inclusion in Bangladesh
Chapter 5: Probability Theory and Statistics
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
sbt 2.0: go big (Scala Days 2025 edition)
Microsoft Excel 365/2024 Beginner's training
Custom Battery Pack Design Considerations for Performance and Safety
A review of recent deep learning applications in wood surface defect identifi...
NewMind AI Weekly Chronicles – August ’25 Week III
sustainability-14-14877-v2.pddhzftheheeeee
Configure Apache Mutual Authentication
Architecture types and enterprise applications.pdf
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Module 1.ppt Iot fundamentals and Architecture
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
CloudStack 4.21: First Look Webinar slides
A contest of sentiment analysis: k-nearest neighbor versus neural network
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
UiPath Agentic Automation session 1: RPA to Agents

Db Concepts1

  • 1. Database concepts Database Container for data Repository for storing organized information in the form of files MG/DB CONCEPTS/CL12
  • 2. DATABASE MANAGEMENT SYSTEM software package that handles the database interface between the user and the database organizes data as a data model - infrastructure of data organization MG/DB CONCEPTS/CL12
  • 3. Relational Data Model data is organized in the form of rows and columns as in a table Table - referred to as a relation Rows - referred to as tuples / records Columns - referred to as fields / attributes MG/DB CONCEPTS/CL12
  • 4. Primary key A field or a group of fields that is the unique identifier for a table The primary key uniquely identifies each row of the table It contains unique value for each record MG/DB CONCEPTS/CL12
  • 5. Database is a collection of related files Tables consist of organized related information Each table is a collection of records Each record contains info about a specific entity The info in each record is contained in fields A field is the basic unit of a db A field can contain text, numbers, dates or even photographs MG/DB CONCEPTS/CL12
  • 6. A data base system has 2 parts The back end The front end Front-end interfaces with the user Eg> Visual Basic The back-end holds data Eg> IBM DB2, MS SQL Server, Oracle, Sybase, Informix, MS Access, Ingress etc MG/DB CONCEPTS/CL12
  • 7. Structured Query Language(SQL) Enables you to create, operate and control relational databases Used for defining and manipulating relational databases Non-procedural language Format free language (Tabs, carriage return and spaces can be included anywhere in the statement) Case insignificant MG/DB CONCEPTS/CL12
  • 8. The language consists of the following components: Data definition component/language: Consists of commands that define and destroy objects like relations/tables, indexes, views etc Eg> Create, alter, drop etc Data manipulation component/language: Consists of retrieval, manipulation and update directives Eg> select, insert, delete, update etc MG/DB CONCEPTS/CL12
  • 9. Data control component: Used for defining security and access control of the database. Allows the user to grant access privileges. Eg> grant : to grant privileges to other users revoke: to revoke privileges The commands are also known as Transaction control commands Transaction control language commands : Manage changes made by DML commands. Commit : to make the changes permanent MG/DB CONCEPTS/CL12 Rollback: to undo all changes.
  • 10. SQL statements can be executed directly i.e interactively or as part of an application program Interactive SQL : Used to operate directly on a db to produce the required output. Used by non-programmers MG/DB CONCEPTS/CL12
  • 11. Embedded SQL : SQL statements embedded within the program source code that is written in some programming language / front end tool Used by programmers MG/DB CONCEPTS/CL12
  • 12. Terminology Cardinality : The number of tuples is called the cardinality Degree : The number of attributes is called the degree Domain a pool of values from which specific attributes of specific relations draw their values. just a data type; provides a set of values from which various attributes in various relations take their actual values. MG/DB CONCEPTS/CL12
  • 13. Primary key : a column or a group of columns in a table that uniquely identifies records in the table. unique identifier for the table. contains unique value for each record. Candidate key : Attributes in a relation that can serve as primary key are candidate keys as they are candidates for the primary key position. MG/DB CONCEPTS/CL12
  • 14. Alternate key : A candidate key that is not the primary key is called an alternate key. Foreign key : Column or a group of columns in a table that is used to reference a primary key in another table. MG/DB CONCEPTS/CL12
  • 15. Terminology MG/DB CONCEPTS/CL12