Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Query Peter McCartney RDIFS Training Workshop Sevilleta LTER.

Slides:



Advertisements
Similar presentations
Lecture plan Information retrieval (from week 11)
Advertisements

1 Chapter 12 Working With Access 2000 on the Internet.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
ASP.NET Programming with C# and SQL Server First Edition
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Web Integration to an Appx Backend Server. Unix web servers + CGI Win2K web servers + ASP Win2K web servers + ODBC Processing requests Generating HTML.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
Web-based Software Development - An introduction.
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
INTRODUCTION TO WEB DATABASE PROGRAMMING
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, October 18, 2012 Session 7: PHP.
Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Entry Applications Peter McCartney (CAP) RDIFS Training Workshop.
Server-side Scripting Powering the webs favourite services.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Introduction to ColdFusion Penn State Web 2001 Conference Brian Panulla Elmwood Media Group, LLC.
Web Application Programming Carol Wolf Computer Science.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
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.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
Introduction to Applets CS 3505 Client Side Scripting with applets.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Java CGI Lecture notes by Theodoros Anagnostopoulos.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
2-1 WEB DATABSE INTERFACING Colorado Technical University IT420.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
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)
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
IBM Office Connect 3.0 James Edmiston Consultant Quest Information Systems, Inc Mike Terrell IT Specialist IBM Data.
Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Database Design Peter McCartney (CAP) RDIFS Training Workshop Sevilleta.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
WEB SERVER SOFTWARE FEATURE SETS
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
PHP using MySQL Database for Web Development (part II)
Web-based Software Development - An introduction
PHP / MySQL Introduction
Enhance BI Applications and Simplify Development
IntroductionToPHP Static vs. Dynamic websites
Web Application Development Using PHP
Presentation transcript:

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Data Query Peter McCartney RDIFS Training Workshop Sevilleta LTER October 28-30, 2002

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Goals Retrieve data from storage Join tables as needed to produce matrix output (denormalize) Transform data to meet analytic needs –Filter, aggregate, select

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Structured Query Language Universal syntax for querying relational datbases. Provides means for specifying –Attributes required –The source tables and how to join them –Criteria for limiting the result (filtering) –Instructions for ordering the result set

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University A Simple SQL Query SELECT personnel.first_name, personnel.last_name, personnel.country_code FROM personnel WHERE personnel.country_code="usa“

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University A Slightly More Complex Query SELECT personnel.first_name, personnel.last_name, country.country_name, interests.interest_area FROM country INNER JOIN (personnel INNER JOIN interests ON personnel.person_ID = interests.person_ID) ON country.country_code = personnel.country_code WHERE (((personnel.country_code)="usa"))

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Result

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Views Views are query statements that are stored in the database. Views return a matrix and may be treated as if they were another table (you can use a view in a query) Only the query statement is stored; the result set is reproduced each time you call the view Views let you hide much of the complicated table joins from your users

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Query a View SELECT myFirstView.* FROM myFirstView WHERE (((myFirstView.interest_area)="data management"));

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Querying Remote Databases The beauty of relational databases is that you can use a variety of client applications to query them. Your users do NOT need to learn Access in order to use your database.

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Accessing Databases Native protocol –Every database has its own native protocol. Applications must be written to this. Open Data Base Connectivity –Windows, Unix, Mac Java Data Base Connectivity –Cross platform –Designed for Java Language

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University A Typical Client Server Connection Database (Access) Application (Excel) Connection Layers (ODBC) Native Syntax Standard SQL Connectivity layer translates applications requests into database‘s native syntax.

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Define an ODBC Source

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Query Once an odbc source is defined, you may access it from any application that supports ODBC Excel, SPSS, ArcView, MapInfo, Active Server Pages Range of capabilities and user friendly features will vary

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Query from Arc View

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Programming the Web Client side –ECMCA languages – Javascript –Code executed by client browser. All data must be transferred to browser Server side –Template “page” scripting –CGI programs

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Web Query HTTPD/CGI programs –External program receives form input, generates entire page to be returned. –Server side Java Server scripting –Permits embedding script within html pages –Html code is returned as is, script code is executed by script engine prior to page being returned. –Active Server Pages (MS IIS) –Java Server Pages ( Apache tomcat, BEA WebLogic, IBM WebSphere, Allaire Jrun

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Three-tiered Query using ASP Declare a connection object and at least one recordset object. Open the connection to your ODBC source Parse the form request parameters Build an sql query Execute the query putting the result in your recordset Access the data in your recordset and write html output to display the data in the page

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University

Central Arizona Phoenix LTER Center for Environmental Studies Arizona State University Lab Assignment Add some data to your database Create some views and store them in your database –(or use the samples at: \\alamillo\inetpub\wwwroot\dbweb) Create an ODBC data source Query your data from Access Create an asp page to display some data following templates: