SlideShare a Scribd company logo
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education
McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education
Chapter 11A
Database Management
Systems
11A-3
Database Management Systems
• Database management system (DBMS)
• Store large collections of data
• Organize the data
• Becomes a data storage system
11A-4
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
11A-5
Database Structure
Field NameField Name
RecordRecord
FieldField
11A-6
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
11A-7
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
11A-8
The Database
• Tables
– One complete collection of records
– Databases may have thousands of tables
11A-9
Database Helper Documents
• Forms
– Present one record to the user
– Often used to change or view data
11A-10
Database Helper Documents
• Reports
– Produce printed results from the database
– Includes tools to summarize data
11A-11
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
11A-12
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
11A-13
ER Diagram
11A-14
The DBMS
• Programs that control the database
• Allows
– Entering data
– Querying data
– Printing reports
• Supports thousands of users
• Includes tools to protect the data
11A-15
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
11A-16
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
11A-17
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
11A-18
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
11A-19
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
11A-20
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
11A-21
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
11A-22
Query Examples
• SQL
Select FirstName, LastName, Phone
From tblPhoneNumbers
Where LastName=“Norton”;
• xBase
Use tblPhoneNumbers
List FirstName, LastName, Phone
For LastName=“Norton”
11A-23
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
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education
Chapter 11A
End of Chapter

More Related Content

PPT
Database management systems
PPT
Databases
PPTX
Web Application Development using PHP Chapter 6
PPTX
Data base
PPT
File organisation
PPT
Ch09 records management
DOCX
File organization in database
Database management systems
Databases
Web Application Development using PHP Chapter 6
Data base
File organisation
Ch09 records management
File organization in database

What's hot (20)

PPTX
File Organization
PPTX
Data management principles
PPT
File organization
PDF
Steam Learn: Introduction to RDBMS indexes
PPTX
MS Access Intro
PPTX
Introduction to data management, terminologies and use of data management pla...
PPT
Lecture #1 Introduction
PPT
Fileorganization AbnMagdy
PPT
File organisation in system analysis and design
PPT
Chapter 06
PPTX
Concept of computer files
PPT
Ch05 records management
PPT
Ch06 records management
PPT
File organisation
PDF
itft-File design
PDF
Chap01 (ics12)
PPT
Ch 8 data base
PPT
File organization
PPTX
Postgres db performance improvements
File Organization
Data management principles
File organization
Steam Learn: Introduction to RDBMS indexes
MS Access Intro
Introduction to data management, terminologies and use of data management pla...
Lecture #1 Introduction
Fileorganization AbnMagdy
File organisation in system analysis and design
Chapter 06
Concept of computer files
Ch05 records management
Ch06 records management
File organisation
itft-File design
Chap01 (ics12)
Ch 8 data base
File organization
Postgres db performance improvements
Ad

Similar to Introduction to computer (20)

PPT
Passionate-Intro_Ch_11A for university students
PPT
Introduction to Database Managemant System.ppt
PPT
bilal tariq presentation 01 cfm.ppt
PPT
Databasesmycopy
PDF
Lecture10 ie321 dr_atifshahzad
PPT
Database (IT) Lecture Slide
PDF
Electronic Data Processing
PPTX
data and information
PPTX
Database Management.pptxqqwwqwqwqqweqwqw
PDF
Database Systems - Lecture Week 1
PDF
Databasell
PPT
Info systems databases
PPTX
Database part1-
PPTX
(8) ECT200_Ch08 Databases and Information Systems.pptx
PPTX
Database fundamentals
PPTX
Dbms unit 1
PPTX
12363 database certification
PDF
PPT
DataBaseManagementSystem-DBMS
Passionate-Intro_Ch_11A for university students
Introduction to Database Managemant System.ppt
bilal tariq presentation 01 cfm.ppt
Databasesmycopy
Lecture10 ie321 dr_atifshahzad
Database (IT) Lecture Slide
Electronic Data Processing
data and information
Database Management.pptxqqwwqwqwqqweqwqw
Database Systems - Lecture Week 1
Databasell
Info systems databases
Database part1-
(8) ECT200_Ch08 Databases and Information Systems.pptx
Database fundamentals
Dbms unit 1
12363 database certification
DataBaseManagementSystem-DBMS
Ad

More from Ujjwal 'Shanu' (20)

PPTX
Risk return trade off
PPTX
Risk perceprtion of ads of infosys
PPTX
Mutual funds
PPTX
Corporate governance
PPTX
Whistle blower final
PPT
PPT
Research design
PPT
Business research
PPTX
Measurement and scaling techniques
PPTX
Taxation
PPT
Shri palaniappan chidambram
PPTX
Planning
PPTX
Merger & acquisition
PPT
Gaar ppt
PPT
Production theory
PPT
Perfect competition
PPT
Oligopoly
PPT
National income
Risk return trade off
Risk perceprtion of ads of infosys
Mutual funds
Corporate governance
Whistle blower final
Research design
Business research
Measurement and scaling techniques
Taxation
Shri palaniappan chidambram
Planning
Merger & acquisition
Gaar ppt
Production theory
Perfect competition
Oligopoly
National income

Recently uploaded (20)

PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
PPT
Chapter four Project-Preparation material
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
DOCX
Euro SEO Services 1st 3 General Updates.docx
PPTX
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
PDF
Chapter 5_Foreign Exchange Market in .pdf
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PDF
Deliverable file - Regulatory guideline analysis.pdf
PDF
Training And Development of Employee .pdf
PPTX
HR Introduction Slide (1).pptx on hr intro
PDF
Reconciliation AND MEMORANDUM RECONCILATION
PDF
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
PDF
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
PPT
340036916-American-Literature-Literary-Period-Overview.ppt
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
PDF
How to Get Funding for Your Trucking Business
PDF
MSPs in 10 Words - Created by US MSP Network
PDF
Ôn tập tiếng anh trong kinh doanh nâng cao
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
Chapter four Project-Preparation material
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
Roadmap Map-digital Banking feature MB,IB,AB
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
Euro SEO Services 1st 3 General Updates.docx
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
Chapter 5_Foreign Exchange Market in .pdf
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
Deliverable file - Regulatory guideline analysis.pdf
Training And Development of Employee .pdf
HR Introduction Slide (1).pptx on hr intro
Reconciliation AND MEMORANDUM RECONCILATION
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
340036916-American-Literature-Literary-Period-Overview.ppt
Belch_12e_PPT_Ch18_Accessible_university.pptx
How to Get Funding for Your Trucking Business
MSPs in 10 Words - Created by US MSP Network
Ôn tập tiếng anh trong kinh doanh nâng cao

Introduction to computer

  • 1. Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.
  • 2. Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education Chapter 11A Database Management Systems
  • 3. 11A-3 Database Management Systems • Database management system (DBMS) • Store large collections of data • Organize the data • Becomes a data storage system
  • 4. 11A-4 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. 11A-5 Database Structure Field NameField Name RecordRecord FieldField
  • 6. 11A-6 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
  • 7. 11A-7 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
  • 8. 11A-8 The Database • Tables – One complete collection of records – Databases may have thousands of tables
  • 9. 11A-9 Database Helper Documents • Forms – Present one record to the user – Often used to change or view data
  • 10. 11A-10 Database Helper Documents • Reports – Produce printed results from the database – Includes tools to summarize data
  • 11. 11A-11 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
  • 12. 11A-12 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
  • 14. 11A-14 The DBMS • Programs that control the database • Allows – Entering data – Querying data – Printing reports • Supports thousands of users • Includes tools to protect the data
  • 15. 11A-15 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
  • 16. 11A-16 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
  • 17. 11A-17 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
  • 18. 11A-18 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
  • 19. 11A-19 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
  • 20. 11A-20 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
  • 21. 11A-21 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
  • 22. 11A-22 Query Examples • SQL Select FirstName, LastName, Phone From tblPhoneNumbers Where LastName=“Norton”; • xBase Use tblPhoneNumbers List FirstName, LastName, Phone For LastName=“Norton”
  • 23. 11A-23 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
  • 24. Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill Technology Education Chapter 11A End of Chapter

Editor's Notes

  • #4: Discussion point Ask your student if anyone knows why sorting by zip code is important. Hopefully, someone knows that the post office provides a discount on presorted mail.
  • #5: Teaching tip Figure 11A.2 on page 423 describes the database structure
  • #10: Teaching tip Figure 11A.3 on page 423 provides examples of forms and reports.
  • #12: Teaching tip Start your students thinking about real databases, with millions of records. Using PA instead of Pennsylvania saves 10 bytes per record. In a database with 1 million records, this saves 10,000,000 bytes. This is roughly equal to a stack of 10 floppy disks
  • #13: 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.
  • #15: Teaching tip Protecting databases is similar to network administration, covered in chapter 9. Access to read and change data is limited to a list of allowed users.
  • #17: Teaching tip Dates are stored sequentially in a database. 0 is January 1, 1970 at midnight. 1 is one millisecond after midnight on January 1, 1970. Each date represents the number of milliseconds from January 1, 1970.
  • #20: Teaching tip Using a DBMS, demonstrate the power of sorting for the class.
  • #21: Teaching tip Page 432 and 433 show examples of the different querying languages.