8A-1 NTW2000-T3 Databases and the Web An Introduction.

Slides:



Advertisements
Similar presentations
1. XP 2 * The Web is a collection of files that reside on computers, called Web servers. * Web servers are connected to each other through the Internet.
Advertisements

1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
Advanced SQL Topics Edward Wu.
Chapter 1: The Database Environment
Chapter 7 System Models.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Chapter 1 The Study of Body Function Image PowerPoint
BASIC SKILLS AND TOOLS USING ACCESS
Structured Query Language (SQL)
Relational Database and Data Modeling
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
Relational data integrity
Communicating over the Network
Database Systems: Design, Implementation, and Management
Configuration management
Fact-finding Techniques Transparencies
Information Systems Today: Managing in the Digital World
Chapter 7 Working with Databases and MySQL
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
Creating Tables, Setting Constraints, and Datatypes What is a constraint and why do we use it? What is a datatype? What does CHAR mean? Page 97 in Course.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Microsoft Access.
Displaying Data from Multiple Tables
Databases and Database Management Systems
Chapter Information Systems Database Management.
Chapter 10: Designing Databases
Chapter 6 Data Design.
Access Tables 1. Creating a Table Design View Define each field and its properties Data Sheet View Essentially spreadsheet Enter fields You must go to.
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
VOORBLAD.
Middleware & Web Services. Layered Protocols: IP Layers, interfaces, and protocols in the Internet model.
Database System Concepts and Architecture
© 2012 National Heart Foundation of Australia. Slide 2.
DISTRIBUTED OBJECTS AND REMOTE INVOCATION
Chapter 9: The Client/Server Database Environment
Introduction to Databases
Global Analysis and Distributed Systems Software Architecture Lecture # 5-6.
25 seconds left…...
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Chapter 12: Designing Databases
Chapter 15 A Table with a View: Database Queries.
PSSA Preparation.
VPN AND REMOTE ACCESS Mohammad S. Hasan 1 VPN and Remote Access.
14 Databases Foundations of Computer Science ã Cengage Learning.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Chapter 16 Integrated Services Digital Network (ISDN)
CpSc 3220 Designing a Database
Management Information Systems, 10/e
 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.
CSC 2720 Building Web Applications Database and SQL.
Database Lecture # 1 By Ubaid Ullah.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
Introduction to SQL Steve Perry
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
1 Databases November 15, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel, and Goldberg. Published.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
 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 to Distributed Systems and CORBA Slides for CSCI 3171 Lectures E. W. Grundke.
Introduction to Database Programming with Python Gary Stewart
Presentation transcript:

8A-1 NTW2000-T3 Databases and the Web An Introduction

8A-2 NTW2000-T3 Why is ‘Databases on the Web’ Important? l Databases are established technology for managing large amounts of data l The Web is a good way to present information l Separating data management from presentation improves efficiency updating finding information Credit: Netskills

8A-3 NTW2000-T3 Examples of Websites Using Databases l Organizational information services employee directories l Booking & scheduling airlines, university courses signup l Electronic commerce l Website automation

8A-4 NTW2000-T3 How to Integrate Databases and the Web? Databases Integration tools

8A-5 NTW2000-T3 Databases Database an organized collection of data –paper-based DBMS (database management system) –software to enable user to create and maintain databases Relational database organizes data into tables RDBMS

8A-6 NTW2000-T3 Examples of RDBMS MS Access desktop MySQL, mSQL mid-range Oracle, Sybase, MS SQL Server large enterprise

8A-7 NTW2000-T3 How to Integrate Databases and the Web? Databases MS Access MySQL, mSQL Oracle, Sybase, MS SQL Server Integration tools PHP or CGI, Servlets, JSP, ASP etc. “Middleware”: e.g. ColdFusionMiddleware

8A-8 NTW2000-T3 Application Interface to Databases CGI Perl DBI Perl DBD (DBD::mysql) ASP ODBC (Open DataBase Connectivity) –A standard for the MS world ODBC driver comes with database –MySQL supplies MyODBC Servlets/JSP — JDBC DBI DBD::mysql DBD::oracle CGI

8A-9 NTW2000-T3 Relational Databases Databases that organize data into tables Each table has –A name (For identification) –One or more columns (For attributes or fields) –Rows (For entries or records)

8A-10 NTW2000-T3 Relational Database Design Logical database design Physical database design

8A-11 NTW2000-T3 Logical Database Design (Entity-relationship modeling) Identify and model the entities Identify and model the relationships between the entities Identify and model the attributes Create unique identifier for each entity Normalize

8A-12 NTW2000-T3 Terminology TermDefinition Entity A thing (person, place, event, etc.) which exists outside of the database and is represented in it Attribute Describes the properties of a particular entity Relationship Describes the associations between two or more entities Normalization Prevents inefficiency by ensuring no duplicated data in multiple tables

8A-13 NTW2000-T3 Physical Database Design Entities become tables Attributes become columns  choose appropriate data type for each column Unique identifiers become primary keys Relationships are modeled as foreign keys  Foreign keys can be primary keys from other tables

8A-14 NTW2000-T3 Structured Query Language (SQL) Standard language for working with relational databases a type of ‘natural’ language l We are going to use Oracle on Borg for the examples we will do in the class/tutorials and for assignment-4. l If you want to use something else, you are free to do so. However, note that in that case it will be your responsibility to solve any problems that may come up…

8A-15 NTW2000-T3 Structured Query Language (SQL) Standard language for working with relational databases A type of ‘natural’ language You may not have to write any code There are tools for that e.g Access query tool But necessary to understand basics, as SQL is common to all nearly all the tools covered today

8A-16 NTW2000-T3 Two Categories of SQL Statement 1. Data manipulation SELECT, INSERT, DELETE 2. Data definition CREATE DATABASE, DROP DATABASE CREATE TABLE, DROP TABLE

8A-17 NTW2000-T3 SQL Statement: INSERT INSERT INTO table (col1, col2, col3,...) VALUES (‘text1’,’text2’...,num1,..); mysql> INSERT INTO employee -> (firstname, lastname, address,em_id) -> VALUES(‘John’,’Doe’,’Somewhere’,1);

8A-18 NTW2000-T3 SQL Statement: DELETE DELETE FROM table WHERE condition; mysql> DELETE FROM employee -> WHERE lastname=‘Jones’;

8A-19 NTW2000-T3 SQL Statement: SELECT SELECT column_list FROM table WHERE condition; mysql> SELECT * from course; mysql> SELECT description -> FROM course -> WHERE title LIKE ‘Using%’;

8A-20 NTW2000-T3 Use SELECT to join tables SELECT table1.colx, table2.coly... FROM table1, table2 WHERE condition; mysql> SELECT course.title, course.description, -> teacher.name -> FROM course, teacher -> WHERE course.teacher_ID=teacher.teacher_ID;

8A-21 NTW2000-T3 Reference Programming the Perl DBI

8A-22 NTW2000-T3

8A-23 NTW2000-T3

8A-24 NTW2000-T3 Aside: Middleware Adapted from Introduction to Distributed Systems: Slides for CSCI 3171 Lectures by E. W. Grundke References: [TvS] A. Tanenbaum and M. van Steen Distributed Systems: Principles and Paradigms, Prentice-Hall (2002) [CDK] G. Coulouris, J. Dollimore and T. Kindberg  Distributed System: Concepts and Design, Addison-Wesley (2001) 

8A-25 NTW2000-T3 Layered Protocols: IP Layers, interfaces, and protocols in the Internet model.

8A-26 NTW2000-T3 Layered Protocols: OSI Layers, interfaces, and protocols in the OSI model. 2-1 TvS 2.2

8A-27 NTW2000-T3 Middleware Protocols An adapted reference model for networked communication. 2-5 TvS 2.6

8A-28 NTW2000-T3 Middleware A software layer that masks the heterogeneity of systems provides a convenient programming abstraction provides protocols for providing general-purpose services to more specific applications, e.g. authentication protocols authorization protocols distributed commit protocols distributed locking protocols high-level communication protocols –remote procedure calls (RPC) –remote method invocation (RMI)

8A-29 NTW2000-T3 Middleware General structure of a distributed system as middleware TvS 1.24

8A-30 NTW2000-T3 Middleware and Openness In an open middleware-based distributed system, the protocols used by each middleware layer should be the same, as well as the interfaces they offer to applications TvS 1.25

8A-31 NTW2000-T3 Middleware programming models Remote Calls  remote Procedure Calls (RPC)  distributed objects and Remote Method Invocation (RMI)  e.g. Java RMI Common Object Request Broker Architecture (CORBA)  cross-language RMI Other programming models  remote event notification  remote SQL access  distributed transaction processing CDK Ch 1 End of Aside