Download Intro II - Western Illinois University

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

IMDb wikipedia , lookup

Oracle Database wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Ingres (database) wikipedia , lookup

Concurrency control wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Database wikipedia , lookup

Clusterpoint wikipedia , lookup

ContactPoint wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

Transcript
INTRO TO ENTERPRISE
DATABASES - II
Dr. Chandra Amaravadi
Western Illinois University
IN THIS PRESENTATION..
Review of concepts from I
Database Organization
Database approach
Database application
CONCEPTS INTRODUCED
Data vs Information
Attribute, primary key
File
Record
File processing
DBMS activities, SQL, QBE
Development cycle
DATABASE ORGANIZATION
Database – A group of related files
File/table – A group of related records
Record – a grouping of related fields
Attr. value – value of an attr. e.g. hair color
Attribute – property of an entity class
Schema -- This is the logical view
of the database (tables and fields)
Primary key – An attribute whose values are
unique within a file
Secondary key – Any other attribute
Database
Files/tables
Records
Attr. values
DATABASE ORGANIZATION
Structure/schema
Primary key
Attributes/field names
PROD#
DESCR.
PRICE
QUANTITY
Record
IR888E
Refrigerator
$1,800
20
Record
TS3233
Television
$67
32
Attr. values
THE DATA BASE APPROACH
Entity classes
File 1
cust.
File 2
emp.
Enterprise
Data model
(ER model)
Data base
Information!
THE DATABASE APPROACH..
Organizations need to collect and manage
information.
Typically this need can be summarized in
terms of entity classes and their relationships
Known as a data model/ER model
ER model is converted to database model
Implemented
THE BASIC CONCEPTS
Entity
– Individual example of person, place or thing.
Entity Class – Collection of related entities.
Attributes – Properties of entity classes about which we
would like to collect information.
DISCUSSION
Classify the following as entity, entity class or attribute
John
San Francisco (as a city)
Customer
Book
Store#
Xbox
Microsoft
Microsoft employees
Invoice
Production
AN EXAMPLE DATABASE
APPLICATION
COMMON APPLICATIONS OF
DATABASES
Customers, products, vendors, orders
Personnel, benefits
Stock trades
Financial transactions
Orders
search engines
THE STUDENT ADMINISTRATION
APPLICATION
The student administration application database consists
of the following tables:
ID and personal information
Courses
Registration
Academic history
Alumni
What attributes are associated with each of these tables?
AN EXAMPLE APPLICATION..
ADMISSIONS
• process applns.
• admissions D.M.
MARKETING
• prospects
• mailings
REGISTRAR
Student
Admin.
database
• registration
• transcripts
COURSE
SCHEDULING
• instructor/room
assignment
•generate schedule
•avoid conflicts
THE STUDENT ADMINISTRATION
APPLICATION
Admissions screen data and enter into database
Printed in form of a report
Checked if students meet requirements
Student certificates validated
Marked as accepted/rejected
Student is cleared for registration
System keeps track of registrations
Checks clashes/ class limits
Monitors enrollment
Prints statistics
THE STUDENT ADMINISTRATION
APPLICATION..
ID Table
• Id
• First/last/MI
•Student or faculty?
Joins the U.
Personal info. Table
• Id
• First/last/MI
•DOB
•Gender
What DBMS
Activity does this correspond to?
AN EXAMPLE APPLICATION..
Registration table
Registers
• id
•Course#
•Term
•Etc.
Course Info. table
• Course#
• ?
• ?
• ?
• ?
• ?
AN EXAMPLE APPLICATION..
Grade table
Completes
course
•?
•?
•?
• Term
AN EXAMPLE APPLICATION..
Academic history
Graduates
• id
• course#
• term
• term GPA
• cum GPA
• Grade
Alumni table
• id
•Year graduated
• degree
• major
REPORTS AND QUERIES
 List of students who graduated
 List of students currently enrolled & their majors
 List of students on hold
 List of students who started in the current semester
 List of students having GPA > 3.0
REPORTS AND QUERIES..
WESTERN ILLINOIS UNIVERSITY
10/12/2015
ACADEMIC STANDING REPORT
FALL 2015
STUDENT ID
LAST NAME FIRST NAME ADDR PHONE# CODE
11898999
11988844
Baxter
Pilani
GS -- Good standing
PS -- Poor standing
Mark
Maryann
12 Oak 837-9875
4 Aggres 976-8999
GS
PS
SUMMARY OF DBMS ACTIVITIES
Activities with DBMS





Define structure /schema
Enter data
modify data
query data
get reports
REVIEW QUESTIONS












Why are databases important?
What is the difference between a database and a DBMS?
Which is a bigger item, a file or a field?
What is data definition?
What are some common DBMS activities?
What is a data entry form used for?
What is SQL? QBE?
Do databases deal with data or information?
What is a file?
How do we get data out of the database?
Is a student an entity class or an attribute?
What is a synonym for an attribute?