kennesaw state university database courseware project ( mario a.m. guimaraes ([email protected])...

10
Kennesaw State University Database Courseware Project (http://coffee.kennesaw.edu/) Mario A.M. Guimaraes ([email protected]) and Martha Myers ([email protected])

Upload: milton-dickerson

Post on 19-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

Kennesaw State University

Database Courseware Project(http://coffee.kennesaw.edu/)

Mario A.M. Guimaraes([email protected])

and Martha Myers

([email protected])

Page 2: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

Database courseware (NSF)

• design and develop animations in support of key database concepts. Current topics

SQL (finished prototypes)

Database Design (few prototypes)

Concurrency (design, 1st prototype)

Page 3: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

SQL Queries – prototypes available

• Visual Basic (downloadable)

Visualization

• Java (java applets)

Construction & Visualization

Page 4: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

SQL Queries - motivation• Low student scores in tests involving

queries

• Construction: allows student to break SQL queries into parts and quickly access the results.

• Visualization: Associating code that students already know with code they are unfamiliar.

Page 5: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

Database Design – prototype available (Flash)

• Convert E-R Diagrams to tables

1) Scenario

2) E-R Diagram is drawn

3) User is presented with several options

4) For each selected option, feedback, animating data redundancy and null

value is shown.

Page 6: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

E-R Diagram -> Table – motivation

• Instructor may show several conversion options in a few minutes.

• Students memorize or are given the solution

(test results)

• Students have trouble detecting redundancy

Page 7: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

Concurrency

• Lost Update (being implemented)

• Deadlock (being implemented)

Page 8: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

The Lost Update:A Concurrency Problem

(table view)

Time 1Trx1 requests and receives a copy of X, 1000.

Time 2Trx2 requests and receives a copy of X, 1000.

Time 3

Trx1 decreases its value by 100 and returns the result (900) to the database.

Time 4

Trx2 increases the value 1000 by 200 and returns the new value (1200) to the database.

Page 9: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

Deadlock

Trx1 requests and receives a copy of X, 1000.

Trx2 requests and receives a copy of Y, 2000.Trx2 requests a copy of X, and enters wait

Trx1 requests a copy of Y, and enters wait

Page 10: Kennesaw State University Database Courseware Project ( Mario A.M. Guimaraes (mguimara@kennesaw.edu) and Martha Myers (mmyers@kennesaw.edu

Next Prototypes

• Database Design:

Class Diagrams

Object x Relational

Normalization

SQL Queries

Indexes: B-Trees, Hashing, Bitmap