 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.

Slides:



Advertisements
Similar presentations
 2003 Prentice Hall, Inc. All rights reserved. Chapter 22 – Database: SQL, MySQL, DBI and ADO.NET Outline 22.1 Introduction 22.2 Relational Database Model.
Advertisements

 2004 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 Pearson Education, Inc. All rights reserved Accessing Databases with JDBC.
Introduction to Web Database Processing
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
1 Introduction to Web Application Introduction to Data Base.
 2008 Pearson Education, Inc. All rights reserved Web Servers (IIS and Apache)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
CSCI 3328 Object Oriented Programming in C# Chapter 12: Databases and LINQ 1 Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
17 Web Servers (Apache and IIS)
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
INTRODUCTION TO WEB DATABASE PROGRAMMING
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 25 – Database: SQL, ADO and RDS Outline 25.1Introduction 25.2Relational Database Model 25.3Relational.
ASP.NET Programming with C# and SQL Server First Edition
Intro to JDBC To effectively use Java Data Base Connectivity we must understand: 1.Relational Database Management Systems (RDBMS) 2.JDBC Drivers 3.SQL.
 2008 Pearson Education, Inc. All rights reserved Database: SQL, MySQL, ADO.NET 2.0 and Java DB.
CHAPTER 7 Database: SQL, MySQL. Topics  Introduction  Relational Database Model  Relational Database Overview: Books.mdb Database  SQL (Structured.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
A CCESSING D ATABASES WITH JDBC CH 24 C S 442: A DVANCED J AVA P ROGRAMMING.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Database Connectivity with JDBC TM.
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
CHAPTER 8 Database: SQL, MySQL. Topics  Introduction  Relational Database Model  Relational Database Overview: Books.mdb Database  SQL (Structured.
CSC 411/511: DBMS Design Dr. Nan WangCSC411_L12_JDBC_MySQL 1 MySQL and JDBC.
Database: SQL and MySQL
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
1 Databases November 15, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel, and Goldberg. Published.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Database, SQL, and ADO.NET- Part 1 Session 11 Mata kuliah: M0874 – Programming II Tahun: 2010.
1 Welcome to CSC 301 Web Programming Charles Frank.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
1 Web Servers (Chapter 21 – Pages( ) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System Architecture.
A CCESSING D ATABASES WITH JDBC CH 24 C S 442: A DVANCED J AVA P ROGRAMMING.
 2008 Pearson Education, Inc. All rights reserved. Chapter 17 Web Servers (Apache and IIS) Internet & World Wide Web How to Program, 5/e.
 2008 Pearson Education, Inc. All rights reserved Database: SQL, MySQL, ADO.NET 2.0 and Java DB.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - SQL, MySQL, DBI and ADO Outline 22.1 Introduction 22.2 Relational Database Model 22.3 Relational.
Introduction and Principles Web Server Scripting.
 2009 Pearson Education, Inc. All rights reserved Databases and LINQ to SQL.
Database: SQL, MySQL, LINQ and Java DB © by Pearson Education, Inc. All Rights Reserved.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
SQL Basics Review Reviewing what we’ve learned so far…….
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Technology Seminar
ORDER BY Clause The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of.
Database, SQL and ADO.NET
Web Development Web Servers.
 2012 Pearson Education, Inc. All rights reserved.
JDBC.
Databases Intro (from Deitel)
Chapter 8 Working with Databases and MySQL
Chapter 22 - SQL, MySQL, DBI and ADO
Web Servers (IIS and Apache)
Java Chapter 6 (Estifanos Tilahun Mihret--Tech with Estif)
Presentation transcript:

 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database

 2004 Prentice Hall, Inc. All rights reserved Introduction Web server –Responds to client requests by providing resources URI (Uniform Resource Identifier) Web server and client communicate with platform-independent Hypertext Transfer Protocol (HTTP)

 2004 Prentice Hall, Inc. All rights reserved Introduction

 2004 Prentice Hall, Inc. All rights reserved HTTP Request Types Request methods –get –post –Retrieve and send client form data to Web server –Post data to a server-side form handler

 2004 Prentice Hall, Inc. All rights reserved System Architecture Multi-tier application (n-tier application) –Information tier (data or bottom tier) Maintains data for the application Stores data in a relational database management system (RDBMS) –Middle tier Implements business logic and presentation logic Control interactions between application clients and application data –Client tier (top tier) Application’s user interface Users interact directly with the application through the client tier

 2004 Prentice Hall, Inc. All rights reserved Client-Side Scripting versus Server- Side Scripting Client-side scripts –Validate user input Reduce requests needed to be passed to server Access browser Enhance Web pages with DHTML, ActiveX controls, and applets Server-side scripts –Executed on server –Generate custom response for clients –Wide range of programmatic capabilities –Access to server-side software that extends server functionality

 2004 Prentice Hall, Inc. All rights reserved Accessing Web Servers Request documents from Web servers –Host names –Local Web servers Access through machine name or localhost –Remote Web servers Access through machine name –Domain name or Internet Protocol (IP) address Domain name server (DNS) –Computer that maintains a database of host names and their corresponding IP address

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) An enterprise-level Web server that is included with Windows

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 5.0 FTP Site –Used for transferring large files across the Internet HTTP Site –Used most frequently to request documents from Web servers SMTP Virtual Server –Sends and receives electronic mail Web Site Content Directory –Directory containing the documents that clients will view

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 5.0 Fig. 21.3Internet Information Services window of Internet Services Manager.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 5.0 Fig. 21.4Virtual Directory Creation Wizard welcome dialog.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 5.0 Fig. 21.5Virtual Directory Alias dialog of the Virtual Directory Creation Wizard.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 5.0 Fig. 21.6Web Site Content Directory dialog of the Virtual Directory Creation Wizard.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 5.0 Fig. 21.7Access Permissions dialog of the Virtual Directory Creation Wizard.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 6.0 Fig. 21.8Internet Information (IIS) Services Manager window.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 6.0 Fig. 21.9Virtual Directory Creation Wizard welcome dialog.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 6.0 Fig Virtual Directory Alias dialog of the Virtual Directory Creation Wizard.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 6.0 Fig Web Site Content Directory dialog of the Virtual Directory Creation Wizard.

 2004 Prentice Hall, Inc. All rights reserved Microsoft Internet Information Services (IIS) 6.0 Fig Access Permissions dialog of the Virtual Directory Creation Wizard.

 2004 Prentice Hall, Inc. All rights reserved Apache Web Server Currently the most popular Web server Stability Efficiency Portability Open-source

 2004 Prentice Hall, Inc. All rights reserved Apache Web Server Fig Apache Web server starting. (Courtesy of The Apache Software Foundation.)

 2004 Prentice Hall, Inc. All rights reserved Introduction Database –Integrated collection of data –Database management system (DBMS) Store and organize data consistent with database’s format Relational database –SQL (Structured Query Language) Queries Manipulate data

 2004 Prentice Hall, Inc. All rights reserved Relational Database Model Composed of tables Row –Number column –Primary key Reference data in the table A column or set of columns in table contains unique data

 2004 Prentice Hall, Inc. All rights reserved Relational Database Model Fig. 22.1Relational database structure of an Employee table.

 2004 Prentice Hall, Inc. All rights reserved Relational Database Model departmentlocation 413New Jersey 642Los Angeles 611Orlando Fig. 22.2Table formed by selecting department and location data from the Employee table.

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database Primary key uniquely identifies each row –Rule of Entity Integrity Composite primary key Lines connecting tables –Relationships One-to-many relationship Foreign key –Join multiple tables –Rule of Referential Integrity

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database

 2004 Prentice Hall, Inc. All rights reserved Relational Database Overview: Books.mdb Database Fig Table relationships in Books.mdb.

 2004 Prentice Hall, Inc. All rights reserved SQL (Structured Query Language)

 2004 Prentice Hall, Inc. All rights reserved Basic SELECT Query SELECT * FROM tableName –SELECT * FROM Authors –SELECT authorID, lastName FROM Authors

 2004 Prentice Hall, Inc. All rights reserved Basic SELECT Query

 2004 Prentice Hall, Inc. All rights reserved WHERE Clause Specify selection criteria for query –SELECT columnName1, columnName2, … FROM tableName WHERE criteria SELECT title, editionNumber, copyright FROM Titles WHERE copyright > 1999 –LIKE Pattern matching –Asterisk ( * ) SELECT authorID, firstName, lastName FROM Authors WHERE lastName LIKE ‘D*’ –Question mark ( ? ) SELECT authorID, firstName, lastName FROM Authors WHERE lastName LIKE ‘?I*’

 2004 Prentice Hall, Inc. All rights reserved WHERE Clause

 2004 Prentice Hall, Inc. All rights reserved WHERE Clause

 2004 Prentice Hall, Inc. All rights reserved WHERE Clause

 2004 Prentice Hall, Inc. All rights reserved ORDER BY Clause Arranged in ascending or descending order –SELECT columnName1, columnName2, … FROM tableName ORDER BY column ASC SELECT authorID, firstName, lastName FROM Authors ORDER BY lastName ASC –SELECT columnName1, columnName2, … FROM tableName ORDER BY column DESC SELECT authorID, firstName, lastName FROM Authors ORDER BY lastName DESC

 2004 Prentice Hall, Inc. All rights reserved ORDER BY Clause

 2004 Prentice Hall, Inc. All rights reserved ORDER BY Clause

 2004 Prentice Hall, Inc. All rights reserved ORDER BY Clause

 2004 Prentice Hall, Inc. All rights reserved ORDER BY Clause

 2004 Prentice Hall, Inc. All rights reserved ORDER BY Clause

 2004 Prentice Hall, Inc. All rights reserved Merging Data from Multiple Tables: INNER JOIN Normalize databases –Ensure database does not store data redundantly –SELECT columnName1, columnName2, … FROM table1 INNER JOIN table2 ON table1, columnName = table2.columnName

 2004 Prentice Hall, Inc. All rights reserved Merging Data from Multiple Tables: INNER JOIN

 2004 Prentice Hall, Inc. All rights reserved. Outline Fig (1 of 1)

 2004 Prentice Hall, Inc. All rights reserved Joining Data from Tables Authors, AuthorISBN, Titles and Publishers

 2004 Prentice Hall, Inc. All rights reserved Joining Data from Tables Authors, AuthorISBN, Titles and Publishers

 2004 Prentice Hall, Inc. All rights reserved INSERT Statement Inserts new row in table –INSERT INTO tableName ( columnName1, columnName2, …, columnNameN ) VALUES ( value1, value2, …, valueN )

 2004 Prentice Hall, Inc. All rights reserved INSERT Statement

 2004 Prentice Hall, Inc. All rights reserved UPDATE Statement Modifies data in a table –UPDATE tableName SET columnName1 = value1, columnName2 = value2, …, columnNameN = valueN WHERE criteria

 2004 Prentice Hall, Inc. All rights reserved UPDATE Statement

 2004 Prentice Hall, Inc. All rights reserved DELETE Statement Removes data from a table –DELETE FROM tableName WHERE criteria

 2004 Prentice Hall, Inc. All rights reserved DELETE Statement

 2004 Prentice Hall, Inc. All rights reserved MySQL Multi-user and multi-threaded RDBMS server Uses SQL to interact with and manipulate data Supports various programming languages Access tables from different databases Handle large databases