9 Review Hachim Haddouti. 9 2 Hachim Haddouti and Rob & Coronel, Final Review How modern databases evolved from files and file systems File Systems vs.

Slides:



Advertisements
Similar presentations
ICS 434 Advanced Database Systems
Advertisements

Lecture plan Information retrieval (from week 11)
Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations 
Management Information Systems, Sixth Edition
8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Hachim Haddouti.
8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management,
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Chapter 6 Database Design
File Systems and Databases
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Organizing Data & Information
Ch1: File Systems and Databases Hachim Haddouti
Introduction to Web Interface Technology (CSE2030)
File Systems and Databases Hachim Haddouti
12 Chapter 12 Client/Server Systems Hachim Haddouti.
12 Chapter 12 Client/Server Systems Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
The Architecture of Transaction Processing Systems
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
13 Chapter 13 The Data Warehouse Hachim Haddouti.
Introduction to Database Management
Chapter 9 Database Design
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
6 Chapter 6 Database Design Hachim Haddouti. 6 2 Hachim Haddouti and Rob & Coronel, Ch6 In this chapter, you will learn: That successful database design.
Chapter 13 The Data Warehouse
14 Chapter 14 Databases and The Internet Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Overview of Database Languages and Architectures.
Web-Enabling the Warehouse Chapter 16. Benefits of Web-Enabling a Data Warehouse Better-informed decision making Lower costs of deployment and management.
The Client/Server Database Environment
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Database Applications.  Database Programming  Web databases  Application architecture.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
Week 6 Lecture The Data Warehouse Samuel Conn, Asst. Professor
Chapter 12 Designing Distributed and Internet Systems
Concepts of Database Management, Fifth Edition
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Data Warehouse & Data Mining
Week 7 Lecture Web Database Development Samuel Conn, Asst. Professor
CSC271 Database Systems Lecture # 4.
Database System Concepts and Architecture
IST 210 Database Design Process IST 210 Todd S. Bacastow January 2005.
Week 4 Lecture Part 3 of 3 Database Design Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
Midterm Exam Chapters 1,2,3,5, 6,7 (closed book) March 11, 2014.
Fundamentals of Database Chapter 7 Database Technologies.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
CSS/417 Introduction to Database Management Systems Workshop 4.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
Database Architectures Database System Architectures Considerations – Data storage: Where do the data and DBMS reside? – Processing: Where.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
13 1 Chapter 13 The Data Warehouse Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
14 1 Chapter 14 Web Database Development Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Connectivity and Server-Side Scripting Chapter 12.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Chapter 2 Database Environment.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
IST 210 Database Design Process IST 210, Section 1 Todd S. Bacastow January 2004.
What is a database? (a supplement, not a substitute for Chapter 1…) some slides copied/modified from text Collection of Data? Data vs. information Example:
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
INLS 623– Stored Procedures
Chapter 13 The Data Warehouse
Chapter 6 Database Design
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Introduction of Week 9 Return assignment 5-2
Presentation transcript:

9 Review Hachim Haddouti

9 2 Hachim Haddouti and Rob & Coronel, Final Review How modern databases evolved from files and file systems File Systems vs DBMS –Structural and data dependence What a database is, what it does, and why database design is important What a DBMS is, what it does, and how it fits into the database system About types of database systems database models –Conceptual models: logical nature of data representation –Implementation models: emphasis on how the data are represented in the database (Hierarchical, Network, Relational) DB and File Systems

9 3 Hachim Haddouti and Rob & Coronel, Final Review relational database model as a logical view of data relational database model’s basic components are entities and their attributes, and relationships among entities How entities and their attributes are organized into tables relational database operators, data dictionary How data redundancy is handled in the relational database model Why indexing is important Relational Model

9 4 Hachim Haddouti and Rob & Coronel, Final Review conceptual model,internal, and external, and physical models (see next picture) How relationships between entities are defined and refined, and how such relationships are incorporated into the database design process (multi value attribute, cardinality, connectivity, bridge or composite entity) How ERD components affect database design and implementation Other popular E-R modeling tools ( Chen, Crow’s Foot) DB Design concerns ( Security, Performance, shared access, Integrity) Entity Relationship (E-R) Modeling

9 5 Hachim Haddouti and Rob & Coronel, Final Review Data Models: Degrees of Data Abstraction

9 6 Hachim Haddouti and Rob & Coronel, Final Review Role of normalization in database design –Reduces data redundancies –Helps eliminate data anomalies –Produces controlled redundancies to link tables About the normal forms 1NF, 2NF, 3NF, That normalization and E-R modeling are used concurrently to produce a good database design That some situations require denormalization to generate information efficiently Normalization

9 7 Hachim Haddouti and Rob & Coronel, Final Review Normalization cont.

9 8 Hachim Haddouti and Rob & Coronel, Final Review Example of ER Modeling Create an ERD based on the Crow’s Foot model, using the following requirements.  An INVOICE is written by a SALESREP. Each sales representative can write many invoices, but each invoice is written by a single sales representative.  The INVOICE is written for a single CUSTOMER. However, each customer may have many invoices.  An INVOICE may include many detail lines (LINE), which describe the products bought by the customer.  The product information is stored in a PRODUCT entity.  The product's vendor information is found in a VENDOR entity.

9 9 Hachim Haddouti and Rob & Coronel, Final Review Example ERD

9 10 Hachim Haddouti and Rob & Coronel, Final Review The basic commands and functions of SQL How SQL is used for data manipulation (to add, modify, delete, and retrieve data) How to use SQL to query a database to extract useful information How SQL is used for data administration (to create tables, indexes, and views) About more advanced SQL features such as updatable views, stored procedures, and triggers SQL

9 11 Hachim Haddouti and Rob & Coronel, Final Review SQL cont. –BETWEEN - defines limits –IS NULL - checks for nulls –LIKE - checks for similar string –IN - checks for value in a set –EXISTS - opposite of IS NULL Group Having Create View

9 12 Hachim Haddouti and Rob & Coronel, Final Review SQL cont. The SQL standard defines embeddings of SQL in a variety of programming languages such as Cobol, Pascal, Fortran, C, and Java. EXEC SQL statement is used to identify embedded SQL request to the preprocessor EXEC SQL END-EXEC Note: this varies by language. E.g. the Java embedding uses # SQL { } ; Dynamic SQL

9 13 Hachim Haddouti and Rob & Coronel, Final Review SQL cont. Trigger –Procedural SQL code invoked before or after data row is selected, inserted, or updated –Automate critical actions and provide warnings for remedial action Stored Procedures –Named collection of procedural and SQL statements stored in database e.g. to represent multiple update transactions ODBC/JDBC

9 14 Hachim Haddouti and Rob & Coronel, Final Review DB Design Information system and DB Systems Development Life Cycle (SDLC) vs. Database Life Cycle (DBLC) How to conduct evaluation and revision within the SDLC and DBLC frameworks What database design strategies exist: top-down vs. bottom-up design and centralized vs. decentralized design

9 15 Hachim Haddouti and Rob & Coronel, Final Review DB Design - SDLC

9 16 Hachim Haddouti and Rob & Coronel, Final Review DB Design - DBLC

9 17 Hachim Haddouti and Rob & Coronel, Final Review DB Design cont.

9 18 Hachim Haddouti and Rob & Coronel, Final Review DB Implementation ER Model Verification Establishes –Design reflects end user views of database –Database transactions defined and modeled so design supports related requirements –Design meets output requirements –Design supports required input screens and data entry forms –Design flexible to support future enhancements Verification identifies –Central entity –Each module and its components –Each module transaction requirement

9 19 Hachim Haddouti and Rob & Coronel, Final Review Client Server Architecture History What client/server computing is What the advantages of using client/server systems are client/server architecture, system components and how they interact What effect the client/server system has on the DBMS

9 20 Hachim Haddouti and Rob & Coronel, Final Review Client Server Architecture cont. Client –Front-end application Server –Back-end application Communications middleware –Communications layer Thin/fat client 2 tier, 3 tier, n tier architecture

9 21 Hachim Haddouti and Rob & Coronel, Final Review Mainframe vs. C/S

9 22 Hachim Haddouti and Rob & Coronel, Final Review Advantages of the Three-Tier Architecture Heterogeneous systems –Tiers can be independently maintained, modified, and replaced Thin clients –Only presentation layer at clients (web browsers) Integrated data access –Several database systems can be handled transparently at the middle tier –Central management of connections Scalability –Replication at middle tier permits scalability of business logic Software development –Code for business logic is centralized –Interaction between tiers through well-defined APIs: Can reuse standard components at each tier

9 23 Hachim Haddouti and Rob & Coronel, Final Review WebDB HTML (GET, POST, FORM, INPUT), HTTP, CSS, XML, XSLT, JavaScript Middle tier: CGI, application servers, Servlets, JSP, ASP, passing arguments, maintaining state (cookies)

9 24 Hachim Haddouti and Rob & Coronel, Final Review WebDB cont. (Web Database Connectivity) Common Gateway Interface (CGI) –Uses script files to connect to database –Perl, C++, VB, PHP Application Programming Interface (API) –Newer and more efficient –Uses DLLs –Memory resident and faster –Well known APIs Netscape (NSAPI) Internet Server API from Microsoft (ISAPI)

9 25 Hachim Haddouti and Rob & Coronel, Final Review Web-to-Database Middleware

9 26 Hachim Haddouti and Rob & Coronel, Final Review WebDB cont. Web-to-Database Middleware Connection Methods Native SQL access middleware Use services of Open Database Connectivity (ODBC) Use Object Linking and Embedding Database (OLE DB) interface with Windows ODBC most common

9 27 Hachim Haddouti and Rob & Coronel, Final Review WebDB cont. Web app Server Servlet (Code first, webpage second) JSP (Webpage first, code second) ASP HTTP is stateless  Server-side state, Client-side state, Hidden state Cookies Issues of WebDB app (Data security, Transaction management, etc.)

9 28 Hachim Haddouti and Rob & Coronel, Final Review DW operational data vs. and decision support data warehouse? What star schemas are and how they are constructed ROLAP, MOLAP What data mining is and what role it plays in decision support

9 29 Hachim Haddouti and Rob & Coronel, Final Review DW cont. Decision support system? Data Warehouse ( Subject-oriented, integrated, time-variant, nonvolatile collection of data in support of management’s decision-making process” Inmon ( AP = analytical processing is missing) Data Marts (Single-subject data warehouse subset, Address local or departmental problems) Separated DW data from operational environment OLAP (Advanced data analysis environment)

9 30 Hachim Haddouti and Rob & Coronel, Final Review DW cont.

9 31 Hachim Haddouti and Rob & Coronel, Final Review DW cont. ROLAP MOLAP Star Schema –Facts –Dimensions –Attributes –Attribute hierarchies DW Operation (Drill Down, RollUp, Slice/Dice) Data Mining

9 32 Hachim Haddouti and Rob & Coronel, Final Review Organizational How do you assess yourself now? Course Objective: Upon sucessful completion of this course, a student will 1. know strengths and weaknesses of the major conceptual and implementation models for databases 2. know current trends in databases Student will be able to 3. produce good relational database design 4. use SQL to build and query a database 5. implement a database using a commercial DBMS

9 33 Hachim Haddouti and Rob & Coronel, Final Review Organizational Midterm exam 20 %, final exam 30 %, homework assignments 15 %, project 30 %, participation & attendance & punctuality 5 %.