SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
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.
Introduction to Web Interface Technology (CSE2030)
CSC 2720 Building Web Applications Database and SQL.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
Linux Operations and Administration
+ 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.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, October 18, 2012 Session 7: PHP.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
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.
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.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Internet Basics Dr. Norm Friesen June 22, Questions What is the Internet? What is the Web? How are they different? How do they work? How do they.
DB Libraries: An Alternative to DBMS By Matt Stegman November 22, 2005.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
PHP meets MySQL.
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
Databases & Data Mining CPS 181s April 3, Databases in eCommerce The move to eCommerce is in part driven by the ability to gather data that benefits.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
1 Welcome to CSC 301 Web Programming Charles Frank.
Database Concepts CPTE 212 3/19/2015 John Beckett.
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
WEB DEVELOPMENT WITH PHP/MYSQL. WEB DEVELOPMENT COURSE HAS DIFFERENT NAME IN DIFFERENT INSITUTES, THIS IS A CORE COURSE FOR BS/MS STUDENTS. THIS IS ALSO.
Enterprise PHP - Introduction Enterprise Client-Server Development with PHP Nic Shulver, FCES, Staffordshire University A fifteen credit module based on.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Database Connectivity and Server-Side Scripting Chapter 12.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Unit 1 – Web Concepts Instructor: Brent Presley.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Relational database and SQL MySQL LAMP SQL queries
SQL Queries Relational database and SQL MySQL LAMP SQL queries
PHP / MySQL Introduction
BASIC PHP and MYSQL Edward S. Flores.
Content of Presentation
Tutorial 6 PHP & MySQL Li Xu
Web Application Development Using PHP
Presentation transcript:

SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment

Relational Database and SQL A particular kind of DBMS that is very good at relating information stored in one table to another –> to pull data from those tables and to join info from related tables to produce answers to the questions that can’t be answered from individual tables alone. SQL (Structured Query Language) standard database language.

MySQL Relational database system Client/server architecture (101 simultaneous connections) SQL (table size for Linux = 4GB) Programming languages: C, C++, Java, Perl, PHP, Python, and Tcl ODBC (Microsoft) Platform independence, security, and speed

LAMP Linux (operating system) Apache (web server system)Apache MySQL (database system) Perl/PHP (programming language)PHP LAMP is an open source dream team LAMP is supported here by: athena

PHP Pure HTML  static web site PHP  enable you to build dynamic web site A server-side scripting language designed specifically for the web Conceived in 1994 by Rasmus Lerdorf as one-man project then adapted by many PHP (Hypertext Preprocessor)

SQL Queries When you use MySQL, you are using 2 programs(client/server): –Database server is a program located on the machine where your data are stored. It listens for client requests coming from network –Clients are programs that connect to the database server and issue queries to tell it what info they want

Benefits of Client/Server The server provides concurrency control so that two users cannot modify the same record at the same time You don’t have to be logged in on the machine where your database is located

A MySQL Tutorial Books info and demo: MySQL, MySQL and Perl for the Web by DuBoisMySQL and Perl for the Web Establishing and terminating connection Issuing Queries Tutorial example: samp_db, tables Our database: webdb

Two Applications Examples of MySQL UCSC Human Genome Project Working DraftUCSC Human Genome Project Working Draft LOCal: A Flexible Web-Based Microscope Reservation System – Univ. of Wisconsin, MadisonLOCal: A Flexible Web-Based Microscope Reservation System

Database Building Assignment (Due 11/30/01) Part I Create a option file named.my.cnf in your home directory with contents to be given Familiar yourself with MySQL by using the tutorial handout Go to our Bioinformatics Software Review web site to edit and save a copy of your five reviews by using Note-takingBioinformatics Software Review Sign up to be a reviewer by using Reviewer Sign-up Enter you review by using Review Entry Check Review Summary

DB Assignment (cont.) Part II Construct one SQL query that will show number of reviews done so far for each software in our software collection (that is adding one more column in the software collection display in our review summary). You may also construct a query of your choice such that it will provide additional useful information to our web site visitors. You are required to give specification in the self-chosen query Construct and test your query in MySQL, then post your final query on WebCT discussion for grading. For PHP fan (not required), adapt review_summary.php and post your URL on WebCT discussion. Download the text file, put it under html directory and change the extension to php, integrate your new query, and chmod 644. You are ready to show off your improvement on web!review_summary.php

Database Design Issues Understanding the process and relations Objects  tables, attributes  columns, data types, relations  index, primary keys Our database: 3 tables student software review

The First Normal Form Columns with similar content must be eliminated A table must be created for each group of associated data Each data must be identifiable by means of a primary key (unique index)

Second Normal Form Whenever the contents of columns repeat themselves, this means that the table must be divided into several sub- tables These table must be linked by foreign keys (cross reference)

Third Normal Form Columns that are not directly related to the primary key must be eliminated A good example of normalizing a database