Download presentation
Presentation is loading. Please wait.
Published byElfreda Lynch Modified over 9 years ago
1
CMPT 258 Database Systems Instructor: Tina Tian
2
General Information Email: tina.tian@manhattan.edu Office: RLC 203A Office Hour: Wednesday 1:30 - 4:30 PM or by appointment Website: home.manhattan.edu/~tina.tian
3
About the Course Mon, Thur 3:00 - 4:15 PM Textbook: ▫Database Management Systems, 3 rd Edition by Raghu Ramakrishnan and Johannes Gehrke
4
Grading 1st Midterm Exam (in class, 5th week)15% 2nd Midterm Exam (in class, 10th week) 15% Final Exam 30% Homework 40%
5
About the Homework Only hard copy is accepted. (Complicated ER diagrams can be drawn by hand) Make a cover page (name, homework number) Due in a week after being announced Late work will not be accepted
6
Homework Policy You may discuss the homework/projects with other students. However, you must acknowledge the people you worked with. And you must independently write up your own solutions. Any written sources used (apart from the text) must also be acknowledged.
7
Advises Take notes Start the homework and programming assignments early
8
What will be covered This course introduces the fundamental concepts of database management ▫Introduction to database management (Chap 1) ▫The entity relationship data model and conceptual schema design (Chap 2)
10
What will be covered The relational data model and relational database design (Chap 3) Relational algebra (Chap 4) SQL queries (Chap 5)
12
12
14
Q6: Find sid’s of sailors who’ve reserved a red boat but not a green boat: SELECT S.sid FROM Sailors S, Boats B, Reserves R WHERE S.sid=R.sid AND R.bid=B.bid AND B.color=‘red’ AND S.sid NOT IN ( SELECT S2.sid FROM Sailors S2, Boats B2, Reserves R2 WHERE S2.sid=R2.sid AND R2.bid=B2.bid AND B2.color=‘green’)
15
What will be covered Application development (Chap 6 & Chap 7 & supporting material) ▫JDBC (Java) ▫Web (PHP)
16
What will be covered Database privileges A database is accessible to many users, and not every user should be allowed to do everything. ▫The owner of the restaurant should be able to view and/or change any data. ▫The restaurant accountant should be able to see, but not change, salary information.
17
What will be covered Transactions (Chap 16) ▫Now consider the following scenario: Two customers, Bob and Mary, arrive at about the same time and each go to a different register. Bob orders a Garden Salad. Bob’s register runs Query 11.1, which indicates that there are enough ingredients to make his order. While Bob decides if he wants to order a drink, Mary also orders a Garden Salad. Mary’s register runs Query 11.1, which again indicates that there are enough ingredients to make her order. Mary immediately pays for her order, and her register executes Update 11.2.
18
Example We always want to make sure that we have all of the ingredients for every item before we submit a customer’s order. 18
19
What will be covered Schema refinement and normal forms (Chap 19) ▫Redundancy causes several problems associated with relational schemas. ▫Functional dependencies, can be used to identify schemas with such problems and to suggest refinements.
20
What will be covered NoSQL
21
Software MySQL ▫MySQL is the most widely used open-source relational database management system. ▫free and open source
22
Download MySQL http://dev.mysql.com/downloads/
26
Readings Chapter 1 Download and install MySQL
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.