SlideShare a Scribd company logo
1 of 23
Mr Zarkovic




              Database
Database Management Systems


∗   Database management system (DBMS)
∗   Store large collections of data
∗   Organize the data
∗   Becomes a data storage system
The Database


∗ Stores a collection of related items
∗ Collection is arranged in a structure
  ∗ Organizes and describes the data
∗ Often includes helper documents
∗ Two different types
Database Structure

Field Name




Field



Record
The Database


∗ Fields
  ∗   Hold an individual piece of data
  ∗   Are named descriptively
  ∗   Often called a column
  ∗   Phone book examples
      ∗ Name, address, e-mail, phone number
  ∗ Fields may contain no data
The Database


∗ Records
  ∗ One full set of fields
  ∗ Often called a row
  ∗ Phone book example
    ∗ Smith, Joe, 123 Some Street, 412-555-7777
  ∗ Databases may have unlimited rows
The Database


∗ Tables
  ∗ One complete collection of records
  ∗ Databases may have thousands of tables
Database Helper Documents
∗ Forms
 ∗ Present one record to the user
 ∗ Often used to change or view data
Database Helper Documents


∗ Reports
  ∗ Produce printed results from the database
  ∗ Includes tools to summarize data
Flat-file Databases


∗ Typically has only one table
  ∗ If multiple, each has a separate file
∗ Useful for simple data storage needs
∗ Hard to manage large data needs
∗ Can waste disk space
Relational Databases


∗ Made of two or more tables
∗ Tables are related by a common field
  ∗ Called a relationship or join
  ∗ Can help organize data
∗ Most common form of database
∗ Maintaining data is easier than flat-file
∗ No wasted disk space
ER Diagram




    11A-12
    11A-12
The DBMS


∗ Programs that control the database
∗ Allows
  ∗ Entering data
  ∗ Querying data
  ∗ Printing reports
∗ Supports thousands of users
∗ Includes tools to protect the data
Working with a Database


∗ Creating tables
  ∗ List the necessary fields
  ∗ Steps to define a field
    ∗ Descriptively name the field
    ∗ Specify the field type
    ∗ Determine the field size
Working with a Database


∗ Field types
  ∗ Describes the type of data stored
  ∗ Most DBMS use the same types
    ∗ Text fields store letters and numbers
    ∗ Numeric field store numbers
    ∗ Date and time field
    ∗ Logical field stores yes or no
    ∗ Binary field stores images or sounds
    ∗ Counter field generates sequential numbers
    ∗ Memo fields store large amounts of data
Working with a Database


∗ Entering data into a table
  ∗ Users type data into a field
  ∗ Data must be entered accurately
    ∗ Constraints help to verify data
  ∗ Forms are typically used for data entry
Working with a Database


∗ Viewing records
  ∗ Datasheet view shows all records
  ∗ Filters can limit the records shown
    ∗ Display only records matching a criteria
  ∗ Forms allow viewing one record
Working with a Database


∗ Sorting records
 ∗ Order records based on a field
 ∗ Multiple sub sorts resolve ‘ties’
 ∗ Several types of sorts
   ∗   Alphabetic
   ∗   Numeric
   ∗   Chronological
   ∗   Ascending
   ∗   Descending
Working with a Database


∗ Querying a database
  ∗ Statement that describes desired data
  ∗ List of fields can be modified
  ∗ Uses of querying
    ∗ Find data
    ∗ Calculate values per record
    ∗ Delete records
  ∗ Most important DBMS skill
Working with a Database


∗ Query languages
  ∗ All DBMS use a query language
    ∗ Most DBMS modify the language
  ∗ Structured Query Language (SQL)
    ∗ Most common query language
  ∗ xBase
    ∗ Query language for dBase systems
  ∗ Query by example (QBE)
    ∗ Interface to SQL or xBase
    ∗ Interactive query design
Query Examples


∗ SQL
  Select FirstName, LastName, Phone
  From tblPhoneNumbers
  Where LastName=“Norton”;

∗ xBase
  Use tblPhoneNumbers
  List FirstName, LastName, Phone
  For LastName=“Norton”
Working with a Database


∗ Generating reports
  ∗ Printed information extracted from
    a database
  ∗ Can calculate data
    ∗ Calculate data per row
    ∗ Calculate for entire table
  ∗ Pictures and formatting can be included
End of Chapter

More Related Content

What's hot

Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)
Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)
Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)Kai Chan
 
Pivotal greenplum external tables
Pivotal greenplum external tablesPivotal greenplum external tables
Pivotal greenplum external tablesRajesh Goyal
 
F Database
F DatabaseF Database
F DatabaseCTIN
 
LDCache - a cache for linked data-driven web applications
LDCache - a cache for linked data-driven web applicationsLDCache - a cache for linked data-driven web applications
LDCache - a cache for linked data-driven web applicationsMetaSolutions AB
 
Demystifying datastores
Demystifying datastoresDemystifying datastores
Demystifying datastoresvishnu rao
 
HPEC 2021 sparse binary format
HPEC 2021 sparse binary formatHPEC 2021 sparse binary format
HPEC 2021 sparse binary formatErikWelch2
 
Information Retrieval, Encoding, Indexing, Big Table. Lecture 6 - Indexing
Information Retrieval, Encoding, Indexing, Big Table. Lecture 6  - IndexingInformation Retrieval, Encoding, Indexing, Big Table. Lecture 6  - Indexing
Information Retrieval, Encoding, Indexing, Big Table. Lecture 6 - IndexingSean Golliher
 
Files and data storage
Files and data storageFiles and data storage
Files and data storageZaid Shabbir
 
Documentation With Open Source Tools·(ასლი)
Documentation With Open Source Tools·(ასლი)Documentation With Open Source Tools·(ასლი)
Documentation With Open Source Tools·(ასლი)Rashad Aliyev
 
Documentation With Open Source Tools
Documentation With Open Source ToolsDocumentation With Open Source Tools
Documentation With Open Source ToolsRashad Aliyev
 
DATABASE PRESENTATION
DATABASE PRESENTATIONDATABASE PRESENTATION
DATABASE PRESENTATIONSunnyRajput34
 
Order by and join
Order by and joinOrder by and join
Order by and joinRiteshkiit
 
MySQL Indexing
MySQL IndexingMySQL Indexing
MySQL IndexingHoang Long
 

What's hot (20)

Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)
Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)
Search Engine-Building with Lucene and Solr, Part 1 (SoCal Code Camp LA 2013)
 
Pivotal greenplum external tables
Pivotal greenplum external tablesPivotal greenplum external tables
Pivotal greenplum external tables
 
F Database
F DatabaseF Database
F Database
 
RDBMS SQL Basics
RDBMS SQL BasicsRDBMS SQL Basics
RDBMS SQL Basics
 
LDCache - a cache for linked data-driven web applications
LDCache - a cache for linked data-driven web applicationsLDCache - a cache for linked data-driven web applications
LDCache - a cache for linked data-driven web applications
 
Make Your Data Searchable With Solr in 25 Minutes
Make Your Data Searchable With Solr in 25 MinutesMake Your Data Searchable With Solr in 25 Minutes
Make Your Data Searchable With Solr in 25 Minutes
 
Demystifying datastores
Demystifying datastoresDemystifying datastores
Demystifying datastores
 
HPEC 2021 sparse binary format
HPEC 2021 sparse binary formatHPEC 2021 sparse binary format
HPEC 2021 sparse binary format
 
Information Retrieval, Encoding, Indexing, Big Table. Lecture 6 - Indexing
Information Retrieval, Encoding, Indexing, Big Table. Lecture 6  - IndexingInformation Retrieval, Encoding, Indexing, Big Table. Lecture 6  - Indexing
Information Retrieval, Encoding, Indexing, Big Table. Lecture 6 - Indexing
 
Files and data storage
Files and data storageFiles and data storage
Files and data storage
 
Bcp
BcpBcp
Bcp
 
Introduction to ms access database
Introduction to ms access databaseIntroduction to ms access database
Introduction to ms access database
 
Documentation With Open Source Tools·(ასლი)
Documentation With Open Source Tools·(ასლი)Documentation With Open Source Tools·(ასლი)
Documentation With Open Source Tools·(ასლი)
 
Documentation With Open Source Tools
Documentation With Open Source ToolsDocumentation With Open Source Tools
Documentation With Open Source Tools
 
Discovering python search engines
Discovering python search enginesDiscovering python search engines
Discovering python search engines
 
Discovering python search engine
Discovering python search engineDiscovering python search engine
Discovering python search engine
 
DATABASE PRESENTATION
DATABASE PRESENTATIONDATABASE PRESENTATION
DATABASE PRESENTATION
 
Order by and join
Order by and joinOrder by and join
Order by and join
 
MySQL Indexing
MySQL IndexingMySQL Indexing
MySQL Indexing
 
MS Access Intro
MS Access IntroMS Access Intro
MS Access Intro
 

Viewers also liked

Informationsystemsincontext
Informationsystemsincontext Informationsystemsincontext
Informationsystemsincontext MR Z
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databasesMR Z
 
Project work zarkovic
Project work zarkovicProject work zarkovic
Project work zarkovicMR Z
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpointSarah Hallum
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpointjamiebrandon
 

Viewers also liked (6)

Informationsystemsincontext
Informationsystemsincontext Informationsystemsincontext
Informationsystemsincontext
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
 
Project work zarkovic
Project work zarkovicProject work zarkovic
Project work zarkovic
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpoint
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpoint
 
Office automation sysmtems
Office automation sysmtemsOffice automation sysmtems
Office automation sysmtems
 

Similar to Databasesmycopy

Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computerUjjwal 'Shanu'
 
Database management systems
Database management systemsDatabase management systems
Database management systemsUjjwal 'Shanu'
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytWrushabhShirsat3
 
SQL: Structured Query Language
SQL: Structured Query LanguageSQL: Structured Query Language
SQL: Structured Query LanguageRohit Bisht
 
Sql server lesson5
Sql server lesson5Sql server lesson5
Sql server lesson5Ala Qunaibi
 
microsoft_access_working_with_forms_and_generating_reports__107.ppt
microsoft_access_working_with_forms_and_generating_reports__107.pptmicrosoft_access_working_with_forms_and_generating_reports__107.ppt
microsoft_access_working_with_forms_and_generating_reports__107.pptKunle Faseyi
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slidesenosislearningcom
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management SystemMian Abdul Raheem
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdfTENZING LHADON
 
SQL ppt.pptx
SQL ppt.pptxSQL ppt.pptx
SQL ppt.pptxfa4185561
 

Similar to Databasesmycopy (20)

Introduction to Database Managemant System.ppt
Introduction to Database Managemant System.pptIntroduction to Database Managemant System.ppt
Introduction to Database Managemant System.ppt
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
unit-ii.pptx
unit-ii.pptxunit-ii.pptx
unit-ii.pptx
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
 
SQL: Structured Query Language
SQL: Structured Query LanguageSQL: Structured Query Language
SQL: Structured Query Language
 
Sql intro & ddl 1
Sql intro & ddl 1Sql intro & ddl 1
Sql intro & ddl 1
 
Sql intro & ddl 1
Sql intro & ddl 1Sql intro & ddl 1
Sql intro & ddl 1
 
Sql server lesson5
Sql server lesson5Sql server lesson5
Sql server lesson5
 
Falando de MySQL
Falando de MySQLFalando de MySQL
Falando de MySQL
 
Mongo db nosql (1)
Mongo db nosql (1)Mongo db nosql (1)
Mongo db nosql (1)
 
microsoft_access_working_with_forms_and_generating_reports__107.ppt
microsoft_access_working_with_forms_and_generating_reports__107.pptmicrosoft_access_working_with_forms_and_generating_reports__107.ppt
microsoft_access_working_with_forms_and_generating_reports__107.ppt
 
DBMS unit-3.pdf
DBMS unit-3.pdfDBMS unit-3.pdf
DBMS unit-3.pdf
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
 
Databases
DatabasesDatabases
Databases
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdf
 
SQL_Part1
SQL_Part1SQL_Part1
SQL_Part1
 
Java JDBC
Java JDBCJava JDBC
Java JDBC
 
SQL ppt.pptx
SQL ppt.pptxSQL ppt.pptx
SQL ppt.pptx
 

More from MR Z

Communication concepts
Communication conceptsCommunication concepts
Communication conceptsMR Z
 
Communication systems
Communication systemsCommunication systems
Communication systemsMR Z
 
Academic coaching
Academic coachingAcademic coaching
Academic coachingMR Z
 
SIMULATION AND MODELLING
SIMULATION AND MODELLINGSIMULATION AND MODELLING
SIMULATION AND MODELLINGMR Z
 
Data warehouse
Data warehouseData warehouse
Data warehouseMR Z
 
How to Break Through
How to Break ThroughHow to Break Through
How to Break ThroughMR Z
 
TPS
TPSTPS
TPSMR Z
 
Transaction ps
Transaction psTransaction ps
Transaction psMR Z
 
Communicationsystems2
Communicationsystems2Communicationsystems2
Communicationsystems2MR Z
 
communication system l2
communication system l2communication system l2
communication system l2MR Z
 
Prototype
PrototypePrototype
PrototypeMR Z
 
Information system and data modelling tools
Information system and data modelling toolsInformation system and data modelling tools
Information system and data modelling toolsMR Z
 
Transmiting and rec
Transmiting and recTransmiting and rec
Transmiting and recMR Z
 
Communicationssystems
CommunicationssystemsCommunicationssystems
CommunicationssystemsMR Z
 
Brain 2
Brain 2Brain 2
Brain 2MR Z
 
Principles of web design
Principles of web designPrinciples of web design
Principles of web designMR Z
 
Multimedia
MultimediaMultimedia
MultimediaMR Z
 
Automated manufacturing systems
Automated manufacturing systemsAutomated manufacturing systems
Automated manufacturing systemsMR Z
 
Decision support systems
Decision support systemsDecision support systems
Decision support systemsMR Z
 
Transaction Processing Systems
Transaction Processing SystemsTransaction Processing Systems
Transaction Processing SystemsMR Z
 

More from MR Z (20)

Communication concepts
Communication conceptsCommunication concepts
Communication concepts
 
Communication systems
Communication systemsCommunication systems
Communication systems
 
Academic coaching
Academic coachingAcademic coaching
Academic coaching
 
SIMULATION AND MODELLING
SIMULATION AND MODELLINGSIMULATION AND MODELLING
SIMULATION AND MODELLING
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 
How to Break Through
How to Break ThroughHow to Break Through
How to Break Through
 
TPS
TPSTPS
TPS
 
Transaction ps
Transaction psTransaction ps
Transaction ps
 
Communicationsystems2
Communicationsystems2Communicationsystems2
Communicationsystems2
 
communication system l2
communication system l2communication system l2
communication system l2
 
Prototype
PrototypePrototype
Prototype
 
Information system and data modelling tools
Information system and data modelling toolsInformation system and data modelling tools
Information system and data modelling tools
 
Transmiting and rec
Transmiting and recTransmiting and rec
Transmiting and rec
 
Communicationssystems
CommunicationssystemsCommunicationssystems
Communicationssystems
 
Brain 2
Brain 2Brain 2
Brain 2
 
Principles of web design
Principles of web designPrinciples of web design
Principles of web design
 
Multimedia
MultimediaMultimedia
Multimedia
 
Automated manufacturing systems
Automated manufacturing systemsAutomated manufacturing systems
Automated manufacturing systems
 
Decision support systems
Decision support systemsDecision support systems
Decision support systems
 
Transaction Processing Systems
Transaction Processing SystemsTransaction Processing Systems
Transaction Processing Systems
 

Databasesmycopy

  • 1. Mr Zarkovic Database
  • 2. Database Management Systems ∗ Database management system (DBMS) ∗ Store large collections of data ∗ Organize the data ∗ Becomes a data storage system
  • 3. The Database ∗ Stores a collection of related items ∗ Collection is arranged in a structure ∗ Organizes and describes the data ∗ Often includes helper documents ∗ Two different types
  • 5. The Database ∗ Fields ∗ Hold an individual piece of data ∗ Are named descriptively ∗ Often called a column ∗ Phone book examples ∗ Name, address, e-mail, phone number ∗ Fields may contain no data
  • 6. The Database ∗ Records ∗ One full set of fields ∗ Often called a row ∗ Phone book example ∗ Smith, Joe, 123 Some Street, 412-555-7777 ∗ Databases may have unlimited rows
  • 7. The Database ∗ Tables ∗ One complete collection of records ∗ Databases may have thousands of tables
  • 8. Database Helper Documents ∗ Forms ∗ Present one record to the user ∗ Often used to change or view data
  • 9. Database Helper Documents ∗ Reports ∗ Produce printed results from the database ∗ Includes tools to summarize data
  • 10. Flat-file Databases ∗ Typically has only one table ∗ If multiple, each has a separate file ∗ Useful for simple data storage needs ∗ Hard to manage large data needs ∗ Can waste disk space
  • 11. Relational Databases ∗ Made of two or more tables ∗ Tables are related by a common field ∗ Called a relationship or join ∗ Can help organize data ∗ Most common form of database ∗ Maintaining data is easier than flat-file ∗ No wasted disk space
  • 12. ER Diagram 11A-12 11A-12
  • 13. The DBMS ∗ Programs that control the database ∗ Allows ∗ Entering data ∗ Querying data ∗ Printing reports ∗ Supports thousands of users ∗ Includes tools to protect the data
  • 14. Working with a Database ∗ Creating tables ∗ List the necessary fields ∗ Steps to define a field ∗ Descriptively name the field ∗ Specify the field type ∗ Determine the field size
  • 15. Working with a Database ∗ Field types ∗ Describes the type of data stored ∗ Most DBMS use the same types ∗ Text fields store letters and numbers ∗ Numeric field store numbers ∗ Date and time field ∗ Logical field stores yes or no ∗ Binary field stores images or sounds ∗ Counter field generates sequential numbers ∗ Memo fields store large amounts of data
  • 16. Working with a Database ∗ Entering data into a table ∗ Users type data into a field ∗ Data must be entered accurately ∗ Constraints help to verify data ∗ Forms are typically used for data entry
  • 17. Working with a Database ∗ Viewing records ∗ Datasheet view shows all records ∗ Filters can limit the records shown ∗ Display only records matching a criteria ∗ Forms allow viewing one record
  • 18. Working with a Database ∗ Sorting records ∗ Order records based on a field ∗ Multiple sub sorts resolve ‘ties’ ∗ Several types of sorts ∗ Alphabetic ∗ Numeric ∗ Chronological ∗ Ascending ∗ Descending
  • 19. Working with a Database ∗ Querying a database ∗ Statement that describes desired data ∗ List of fields can be modified ∗ Uses of querying ∗ Find data ∗ Calculate values per record ∗ Delete records ∗ Most important DBMS skill
  • 20. Working with a Database ∗ Query languages ∗ All DBMS use a query language ∗ Most DBMS modify the language ∗ Structured Query Language (SQL) ∗ Most common query language ∗ xBase ∗ Query language for dBase systems ∗ Query by example (QBE) ∗ Interface to SQL or xBase ∗ Interactive query design
  • 21. Query Examples ∗ SQL Select FirstName, LastName, Phone From tblPhoneNumbers Where LastName=“Norton”; ∗ xBase Use tblPhoneNumbers List FirstName, LastName, Phone For LastName=“Norton”
  • 22. Working with a Database ∗ Generating reports ∗ Printed information extracted from a database ∗ Can calculate data ∗ Calculate data per row ∗ Calculate for entire table ∗ Pictures and formatting can be included

Editor's Notes

  1. Mr Zarkovic
  2. Discussion point Ask your student if anyone knows why sorting by post code is important. Mr Zarkovic
  3. Mr Zarkovic
  4. Mr Zarkovic
  5. Teaching tip Start your students thinking about real databases, with millions of records. Mr Zarkovic
  6. Teaching tip To demonstrate the power of relationships, setup a flat file database with music, artists, CD and year released. Demonstrate how difficult and wasteful it is to store several songs by the same artist and CD. Be sure to make several typing mistakes. Then build the same structure relationally. Create music, artist and CD tables. Join the artist and CD to the music table. Now show how easy it is to add songs from the same CD. While creating this database, it helps to use music the students know. Mr Zarkovic
  7. Mr Zarkovic
  8. Mr Zarkovic
  9. Teaching tip Using a DBMS, demonstrate the power of sorting for the class. Mr Zarkovic
  10. . Mr Zarkovic