Database Processing Applications and Business Intelligence

Slides:



Advertisements
Similar presentations
Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Advertisements

Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall.
Database Processing Applications and Business Intelligence Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
David M. Kroenke and David J. Auer Database Processing: F undamentals, Design, and Implementation Chapter Ten: Managing Databases with SQL Server 2008.
1 Chapter 12 Working With Access 2000 on the Internet.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 25.
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
Fundamentals, Design, and Implementation, 9/e Chapter 14 JDBC, Java Server Pages, and MySQL.
Prentice Hall © COS 346 Day Agenda Capstone Progress report due Assignment 9 not corrected yet Assignment 10 posted (last one!!!) –Due.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall COS 346 Day 23.
Fundamentals, Design, and Implementation, 9/e COS 346 DAY 22.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall COS 346 Day 26.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 COS 346 Day 22.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Database Processing for Business Intelligence Systems
Big Data, Data Warehouses, and Business Intelligence Systems
Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Advanced Topics Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Big Data, Data Warehouses, and Business Intelligence Systems Chapter Eight DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC Database Processing: Fundamentals,
+ Connecting to the Web Week 7, Lecture A. + Midterm Basics Thursday February 28 during Class The lab Tuesday, February 26 is optional review Class on.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 7-1 David M. Kroenke’s Chapter Seven: SQL for Database Construction and.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC, OLE DB, ADO, and ASP Part.
1 ODBC, OLE DB, ADO, and ASP. 2 Introduction  Because database applications today reside in a complicated environment, various standards have been developed.
CSS/417 Introduction to Database Management Systems Workshop 5.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 14 Networks, Multi-Tier Architectures, and XML.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 David M. Kroenke’s Chapter Thirteen: XML and ADO.NET Part Four Database.
Advanced Topics Chapter Seven DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
CSS/417 Introduction to Database Management Systems Workshop 4.
Business Intelligence Systems Appendix J DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Fundamentals, Design, and Implementation, 9/e by David M. Kroenke BSA206 Database Management Systems Lecture 21: Databases and the Web Chapters 12, 13.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 12-1 David M. Kroenke’s Chapter Twelve: ODBC, OLE DB, ADO, and ASP Part.
+ Connecting to the Web Chapter 7. + Chapter Objectives Understand and be able to set up Web database processing Learn the basic concepts of Extensible.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
+ Big Data. + Chapter Objectives Learn the basic concepts of Big Data, structured storage, and the MapReduce process Learn the basic concepts of data.
Database Connectivity and Server-Side Scripting Chapter 12.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Twelve: Big Data, Data Warehouses, and Business.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix J: Business Intelligence Systems.
Database Processing Applications Chapter Seven DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 7 th Edition.
Chapter Seven: SQL for Database Construction and Application Processing.
Web Database Programming Using PHP
ASP.NET Programming with C# and SQL Server First Edition
Accessing the Database Server: ODBC, OLE DB, and ADO
Chapter 9: The Client/Server Database Environment
Database Connectivity and Web Technologies
Chapter 2 Database System Concepts and Architecture
Chapter 15 Database Connectivity and Web Technologies
Web Database Programming Using PHP
The Client/Server Database Environment
PHP / MySQL Introduction
Microsoft Access 2003 Illustrated Complete
Database Processing Applications
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Lecture 1: Multi-tier Architecture Overview
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Database Applications
Chapter 7 Using SQL in Applications
Database Processing: David M. Kroenke’s Chapter Twelve: Part One
Presentation transcript:

Database Processing Applications and Business Intelligence DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3rd Edition Chapter Seven Database Processing Applications and Business Intelligence

Chapter Objectives Understand and be able to set up Web database processing Learn the basic concepts of Extensible Markup Language (XML) Learn the basic concepts of business intelligence (BI) systems Learn the basic concepts of OLAP and data mining KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Heather Sweeney Designs: Database Design KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Heather Sweeney Designs: HSD Database Diagram in SQL Server 2005 KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Database Processing Environment A database processing environment is complicated and multi-faceted Multiple users Multiple queries Multiple forms Multiple reports Multiple application programs KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

The Database Processing Environment KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Queries, Forms, and Reports Microsoft Access is being used to create forms and reports for a database running in SQL Server 2005 Express Edition KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Processing Constraints Enforcing referential integrity Cascading deletion Cascading modifications Data type constraints Data size constraints Data value constraints Null constraints Uniqueness constraints KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Triggers and Stored Procedures A trigger is a stored procedure that is automatically invoked by the DBMS when a specified activity occurs BEFORE, AFTER and INSTEAD OF A stored procedure is a module similar to subroutine or function that performs database actions Stored in the database itself KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Internet Application Processing Internet Application Processing is more complicated than traditional application processing Specifically, with Internet Application Processing … The network becomes an integral part of the application KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Internet Application Processing Environment KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

APIs Every DBMS product has an application program interface (API) An API is a collection of objects, methods, and properties for executing DBMS functions from program code Each DBMS has its own API, and APIs vary from one DBMS product to another. To simplify this situation, the computer industry has developed standards for database access API interface standards are used to make it easier for programmers – they write to the interface standard instead of the DBMS API ODBC – Open Database Connectivity JDBC – Java Database Connectivity KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

OBDC and OLE DB The Open Database Connectivity (ODBC) standard was developed in the early 1990s Provides a DBMS-independent means for processing relational database data OLE DB was created by Microsoft in the mid-1990s An object-oriented interface Encapsulates data-server functionality Designed not just for access to relational databases, but also for accessing many other types of data as well Readily accessible to programming languages such as C, C#, and Java Not as accessible to Visual Basic and scripting languages KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ADO and ADO.NET Microsoft developed Active Data Objects (ADO) A set of objects for utilizing OLE DB Designed for use by any language, including VB, VBScript, and Jscript ADO has been followed by ADO.NET An improved version of ADO developed as part of Microsoft’s .NET initiative KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC, OLE DB, and ADO in the Web Database Processing Environment KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

N-Tier Architecture Tiers refers to the number of computers involved in the Web database application The workstation with Web browser is the first tier Two-tier architecture means that the Web server and the DBMS are on the same server Three-tier architecture means that the Web server and the DBMS are on separate servers KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Typical Web Server Setups Microsoft Windows Linux or Unix Web Server Internet Information Server (IIS) Apache Scripting Languages (Interpreted ASP Pages with VBScript or JScript (PHP also works) PHP Object Oriented Languages (Complied) ASP.NET pages with VisualBasic.Net, C#.Net or others JSP pages with Java (Also see the Mono project) KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Typical Web DBMS Servers Microsoft Windows Linux or Unix Web Server Internet Information Server (IIS) Apache DBMSs SQL Server Oracle MySQL API Interface Standard ODBC JDBC KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC: Three-tier Web Server Architecture KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture The application program, the ODBC driver manager, and the ODBC DBMS driver all reside on the Web server The DBMS driver sends requests to data sources on the database server A data source is the database, its associated DBMS, operating system, and network platform KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: The Application Program The application program issues requests To create a connection with a data source To issue SQL statements and receive results To process errors To start, commit, and roll back transactions ODBC Provides a standard means for each of these requests Defines a standard set of error codes and messages KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: The ODBC Driver Manager Serves as an intermediary between the application and the DBMS drivers When the application requests a connection, the driver Determines the type of DBMS that processes a given ODBC data source Loads the appropriate driver into memory (if it is not already loaded) KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: The ODBC Driver A ODBC driver Processes ODBC requests Submits specific SQL statements to a given type of data source There is a different driver for each data source type It is the responsibility of the driver to ensure that standard ODBC commands execute correctly Converts data source error codes and messages into the ODBC standard codes and messages KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: ODBC Data Sources An ODBC data source Is an ODBC data structure that identifies a database and the DBMS that processes it There are three types of data sources A file data source is a file that can be shared among database users—The only requirement is that the users have the same DBMS driver and privilege to access the database. A system data source is one that is local to a single computer—The operating system and any user on that system (with proper permissions) can use a system data source A user data source is available only to the user who created it Each created data source is given a data source name (DSN) that is used to reference the data source. KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: Creating an ODBC Data Source I KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: Creating an ODBC Data Source II KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

ODBC Architecture: Creating an ODBC Data Source III KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

IIS: The wwwroot Folder KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

IIS: The IIS Management Program KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

IIS: The IIS Localstart Web Page KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Web Pages: HTML Code for default.htm <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Heather Sweeney Designs Demonstration Pages Home Page</title> </head> <body> <P align="center"> <font face="" color="#0000ff" size="6"> Database Concepts (3rd Edition) </font> </P> <p align="center"> <b>David M. Kroenke (University of Washington)</b> </p> <b>David J. Auer (Western Washington University)</b> <hr> <font size="5"> Welcome to the Heather Sweeney Designs Home Page <p>Chapter 7 Demonstration Pages from Figures in the Text:</p> <p>Example 1:    <a href="ReadSeminar.asp"> Display the SEMINAR Table (No surrogate key) </a> </body> </html> KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Web Pages: The default.htm Web Page KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Web Pages: The ReadSeminar.asp Web Page KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): Abstractions, Objects and Collections An abstraction is a generalization of something ODBC interfaces are abstractions of native DBMS access methods When we abstract something, we lose detail, but we gain the ability to work with a broader range of types An object-oriented programming object is an abstraction that is defined by its properties and methods Properties represent characteristics or attributes of the object Methods are actions that the object can perform A collection is an object that contains a group of other objects Being an object, a collection has properties and methods In ADO, collections are named as the plural of the objects they collect One of the properties of all collections is Count, which is the number of objects in the collection. An important method of a collection is an iterator, which is a method that can be used to pass through or otherwise identify the items in the collection KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): The ADO Object Model I KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): The ADO Object Model II The Connection object is the first ADO object to be created and is the basis for the others From a connection, a developer can create one or more RecordSet objects and one or more Command objects Each RecordSet object has a Fields collection Each Field element corresponds to a column in the recordset Each Command object has a Parameters Collection Contains Parameter objects which are the parameters needed by the command In the process of creating or working with any of these objects, ADO will place any errors (error objects) that are generated in the Errors collection KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): ADO Constants in the ADOVBS.inc File Isolation levels KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): ADO Constants in the ADOVBS.inc File Cursor types KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): ADO Constants in the ADOVBS.inc File Lock types KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): Referencing the ADOVBS.inc File Adovbs.inc is referenced in this line KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): The Connection Object The ADO adXactReadCommitted isolation level in Adovbs.inc is referenced in this line KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): The RecordsetObject The ADO adOpenStatic cursor type Adovbs.inc is referenced in this line The ADO adLockReadOnly lock type in Adovbs.inc is referenced in this line KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): The Fields Collection The ADO Count property The ADO iteration method KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Active Data Objects (ADO): The Errors Collection In current code: More complete version: KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Database Processing with XML Extensible Markup Language (XML) is a standard for defining the structure of documents and communicating the documents among computers It provides user definable tags that can be used in Web pages and other documents KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Sample XML document KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

XML Schema Documents XML schema documents define allowable tags and their relationships KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

XML Document Validation An XML document can declare the name and location of the schema that defines its tags XML documents that conform to their XML schemas are schema-valid documents XML schema documents are XML documents, and can be validated against their designated schema The “Schema of all schemas” is at www.w3.org/2001/XMLSchema KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Sample XML Schema KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

XML and Database Processing DBMS programs are incorporating means to read and create XML documents SQL Server 2005 example: SELECT * FROM ARTIST FOR XML AUTO, ELEMENTS; KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

SQL for XML Processing SQL statement using XML The results are in one cell KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Results of SQL for XML Processing The expanded results KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Text Results of SQL for XML Processing KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

XLM Web Services XML Webs Services allows application functionality on one Web server to be shared and incorporated into Web applications on other Web servers KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Business Intelligence Systems Business intelligence (BI) systems are information systems that Assist managers and other professionals in the analysis of current and past activities and in the prediction of future events Do not support operational activities, such as the recording and processing of orders These are supported by transactin proccessing systems Support management assessment, analysis, planning, and control BI systems fall into two broad categories Reporting systems that sort, filter, group, and make elementary calculations on operational data Data mining applications that perform sophisticated analyses on data, analyses that usually involve complex statistical and mathematical processing KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

The Relationship Among Operational and BI Applications KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

OLAP and Data Mining OnLine Analytical Processing (OLAP) is a technique for dynamically examining database data OLAP uses arithmetic functions such as Sum and Average Data Mining is a mathematically sophisticated technique for analyzing database data Data mining use mathematical and statistical techniques KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

OLAP OLAP uses a table called an OLAP cube The OLAP cube uses inputs called dimensions The OLAP cube calculates outputs called measures KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Sample OLAP Cube KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Data Mining Techniques Data Mining mathematical and statistical techniques include: Cluster analysis Regression analysis Time-series analysis Factor analysis Nonparametric Monte Carlo analysis KROENKE and AUER - DATABASE CONCEPTS (3rd Edition) © 2008 Pearson Prentice Hall

Database Processing Applications and Business Intelligence DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3rd Edition End of Presentation on Chapter Seven Database Processing Applications and Business Intelligence