15
Computer Science 101 Database Concepts

Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Embed Size (px)

Citation preview

Page 1: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Computer Science 101

Database Concepts

Page 2: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Database

• Collection of related data

• Models real world “universe”

• Reflects changes

• Specific purposes and audience

Page 3: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Database Management System

• Complex software system

• General purpose - not specific to one domain

• Commercial product

• Vary from personal database managers (Access) to large, corporate systems (Oracle, SQL Server).

Page 4: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Relational Model

• Used by most popular database systems

• Data is stored in tables consisting of rows and columns.

• Rows correspond to individual entities.

• Columns correspond to properties or attributes of the entities.

Page 5: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Major Components - Definition

• Definition: – Define the tables and the kinds of data in the

tables– Specify constraints on the data– Define relationships that exist between entities– Define indexes to be built for searching, etc.– Can be done with Data Definition Language or

with some kind of “wizard” or “tool”.

Page 6: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Major Components - Tables

Page 7: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience
Page 8: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience
Page 9: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Major Components - Queries

• Searching for data that meet specified conditions

• Results can combine data from various tables and contain specified attributes

• Can be done with a Query Language or using special helper tools provided

• Query can be stored for future use

Page 10: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Alsos Browse

for People

Page 11: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

People Browse Query

Page 12: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Major Components - Forms

• Create Forms for – Data Entry– Update– Queries

• Can involve multiple related tables

• Can involve “action” buttons, computed values, etc.

Page 13: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Alsos Book Form

Page 14: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Major Components - Reports

• Printable reports

• Related data from various tables

• Sections and subsections

• Summary data based on sections, subsections, etc.

Page 15: Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience

Alsos Book Report