CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

31
CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University

Transcript of CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Page 1: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

CMU SSD7: Database Systems

Lu Wei

School of Software

Northwestern Polytechnical University

Page 2: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 2

iCarnegie Curriculum

Page 3: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 3

Outline

• Books• Motivations• Outcomes• Contents Overview• Practices and Examinations• Schedule• Introduction to the Trestle System• Suggestions

Page 4: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 4

Books

• Thomas M. Connolly, et al. Database Systems: A practical approach to Design, Implementation, and Management. 4th Edition ISBN: 0321210255 Addison-Wesley, 2004

• OR• Thomas M. Connolly, et al. Database Systems:

A practical approach to Design, Implementation, and Management. 3rd Edition ISBN: 0201708574 Addison-Wesley, 2001

Page 5: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 5

Motivations

• A web based Teaching & Learning platform and abundant materials

• Learn how to use icarnegie resources.• Grasp the contents and exercises given in slides

and online. • Adept to education style with Web-based electr

onic educational mode• Pass three Unit Exams and final Exam• Start learning yourself step by step in field of dat

abase systems.

Page 6: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 6

• Outcomes after teaching & learning SSD7 course

Page 7: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 7

Outcomes

• The purpose of SSD7 is for students to – Become familiar with fundamental DBMS concepts

and what a database system is – Learn to use SQL– Learn to design database systems– Learn to design and manage transaction– Learn to improve query performance– Gain exposure to future trends in databases

Page 8: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 8

Outcomes cont’d 1

• Students successfully completing SSD7 will be able to PRODUCE (cont’d) – Database designs that support a given application– Data models using E-R diagrams – Sound schema designs using normalization – Web-based database applications using SQL and JS

P/Servlets

Page 9: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 9

Outcomes cont’d 2

• Students successfully completing SSD7 will be able to USE– Index structures of a DBMS to improve performance – The transaction features of a DBMS to achieve fault

recovery and concurrency control – Key relational operations to manipulate data – SQL DDL to model data, constraints, and views – SQL DML to write complex queries

Page 10: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 10

Outcomes cont’d 3

• Students will be able to knowledgeably DISCUSS– The basic concepts of object-relational and object-orie

nted database management systems – The basic concepts and application of data warehousi

ng and data mining (datacubes, OLAP) – The basic functions and application of multimedia dat

abases – The basic issues of database privacy and security – The DBMS offerings of the most important vendors

Page 11: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 11

Outcomes cont’d 4

• The students will be able to – Hold Positions as Beginning Database Designers and

Programmers

Page 12: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 12

Contents Overview

• SSD7: Database Systems• Five units

– Unit 1. Database Systems– Unit 2. Complete SQL– Unit 3. Database Design– Unit 4. Transaction and Indexes– Unit 5. Current Trends

• Three examinations• One certification exam

Page 13: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 13

Unit 1 Database Systems

• 1.1 Introduction to Databases and Systems– 1.1.1 What Is a Database? – 1.1.2 Examples of Database Systems – 1.1.3 When Is a Database Management System

Needed? – 1.1.4 When Is a Database Management System Not

Needed?

• 1.2 Relational Databases– 1.2.1 Key Concepts – 1.2.2 Relational Operations – 1.2.3 QBE (Query By Example)

Page 14: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 14

Unit 2 Complete SQL

• 2.1 Basic SQL – 2.1.1 SQL Data Definition Language – 2.1.2 SQL Data Manipulation Language

• 2.2 Advanced SQL – 2.2.1 Views – 2.2.2 Integrity Constraints in SQL – 2.2.3 Access Control – 2.2.4 Embedded SQL

Page 15: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 15

• 2.3 Web Databases – 2.3.1 Web Database Applications – 2.3.2 HTTP and HTML Forms – 2.3.3 Microsoft Active Platform – 2.3.4 JDBC (Java DataBase Connectivity) – 2.3.5 Java Servlets – 2.3.6 Java Server Pages – 2.3.7 JavaBeans – 2.3.8 MVC Architecture

Page 16: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 16

Unit 3 Database Design

• 3.1 Database System Design • 3.2 Entity-Relationship Models

– 3.2.1 ER Concepts – 3.2.2 Enhanced ER and ER Notation – 3.2.3 Mapping from ER Models to Relational Models

• 3.3 Normalization – 3.3.1 Why Normalize? – 3.3.2 Normal Forms

Page 17: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 17

Unit 4 Transactions and Indexes

• 4.1 Transaction Management – 4.1.1 Transaction Support – 4.1.2 Concurrency Control Protocols – 4.1.3 Database Recovery – 4.1.4 Programming with Transactions

Page 18: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 18

• 4.2 Improving Query Performance – 4.2.1 Database Storage and Query Performance – 4.2.2 Hash Files – 4.2.3 Indexes – 4.2.4 Query Optimization and Index Choice

Page 19: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 19

Unit 5 Current Trends

• 5.1 Non-Relational Data Models – 5.1.1 Object Relational Models – 5.1.2 Varying Data Types – 5.1.3 Database Classifications and the Marketplace

• 5.2 Data Warehousing, OLAP, and Data Mining

Page 20: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 20

Practices and Examinations

• Ten Exercises• Three Examinations

Page 21: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 21

Schedule 1

Chapter

Chapter

Page 22: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 22

Schedule 2

Chapter

Chapter

Page 23: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 23

Schedule 3

Chapter

Chapter

Page 24: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 24

Schedule 4

Chapter

Chapter

Page 25: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 25

Schedule 5

Chapter

Chapter

Page 26: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 26

Introduction to the Trestle System

• 1 Introduction– 1.1 Supported Browsers– 1.2 Logging Into Trestle– 1.3 The Trestle Interface

• 2 The Student Interface– 2.1 The Main Menu

• 2.1.1 My Info

• 2.1.2 Courses

• 2.1.3 Messaging

• 2.1.4 Comment

• 2.1.5 Help

• 2.1.6 Logout

iCarnegie

Page 27: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 27

Introduction to the Trestle System cont’d 1

– 2.2 Navigating CTE Courses on Trestle• 2.2.1 Course Outline• 2.2.2.1 Previous/Up/Next Buttons• 2.2.2.2 The Breadcrumb Trail• 2.2.2.3 My Course Record• 2.2.2.4 Hide/Show Outline• 2.2.2 Course Navigation Menu

– 2.2.3 Assessments• 2.2.3.1 Submitting Assessments

– Exercise: Lesson Plan

Page 28: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 28

Introduction to the Trestle System cont’d 2

• 3 The Messaging System– 3.1 Forums

• 3.1.1 Student Forums• 3.1.2 Staff Forums

– 3.2 Discussions– 3.3 Messages– 3.4 Tips and Strategies– Exercise: Using the Messaging System

Page 29: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 29

Introduction to the Trestle System cont’d 3

• 4 The Staff Interface– 4.1 The Staff Main Menu– 4.2 Navigating the Staff Interface

• 4.2.1 Search• 4.2.2 Course Section• 4.2.3 Proctor

– 4.2.3.1 Reviewing Assessments– 4.2.3.2 What Is Proctoring?– 4.2.3.3 How To Proctor

• 4.2.4 Section Roster• 4.2.5 Individual Student Record• 4.2.6 View Tracking Data

Page 30: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 30

Introduction to the Trestle System cont’d 4

• 4 The Staff Interface– 4.3 Grading

• 4.3.1 CTE Rubrics• 4.3.2 A Practice Rubric

– Exercise: Using the Staff Interface

• Appendix– Frequently Asked Questions– Trestle Features

Page 31: CMU SSD7: Database Systems Lu Wei School of Software Northwestern Polytechnical University.

Lu Wei 31

Suggestions

• Reading contents given online and books• Do all the exercises yourself• Discuss with your classmates when you read

contents or do exercise but do not copy work.