Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database Management Systems II

Similar presentations


Presentation on theme: "Database Management Systems II"— Presentation transcript:

1 Database Management Systems II
Session 5

2 Objectives Design database schema Understand elements of RDBMS
Understand use of SQL and read simple SQL commands Complete a RDBMS exercise using MS Access

3 Topics Database Schema Queries, Forms and Reports Introduction to SQL
Hands-on exercise

4 Scenario Draw an E-R diagram:
Northwind is a wholesaler of delicatessen products. Customers are all over the world and each member of the sales team may deal with any customer. Products is kept in a central warehouse and items are ordered from Suppliers when numbers reach the re-order level. An Order may consist of several different products and may be delivered by any one of three Shippers.

5 Entity-Relationship Diagram

6 Table Definition Table: Contacts Field Name Data Type Size Indexing
Contact ID Number Long Integer Primary Key Name Text 30 Birthday Date Birthday Card Yes/No

7 RDBMS Objects FORMS TABLES QUERIES REPORTS

8 Forms

9 Reports

10 SQL Code SELECT ProductID, ProductName FROM Products
WHERE Discontinued = ‘No’ ORDER BY ProductName; - What will the query output look like? - What is this query doing?

11 Exercise Honest Pete’s Car Sales is a business that deals in second hand cars. You have been given a table of current stock and a table of sales staff. Construct a schema with table definitions showing primary keys and indicating how tables should be linked. Following your design, construct the DBMS in MS Access


Download ppt "Database Management Systems II"

Similar presentations


Ads by Google