Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.

Slides:



Advertisements
Similar presentations
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Advertisements

WaveMaker Visual AJAX Studio 4.0 Training
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Murach's MySQL, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
The Collections Keeper A collections management system Brian J. Mullen.
Relational Database. Converting Model to target implementation QSEE will produce 3 types of schema –XML document DTD XML schema –SQL Relational Database.
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Data Modelling. EAR model This modelling language allows a very small vocabulary: Just as English has nouns, verbs, adjectives, pronouns.., EAR models.
A complete web app using flex. You can use the flex builder to generate the php (server side) code for a flex-php application. As before, Php connects.
Lecture 4: Introduction to PHP 3 PHP & MySQL
Concepts of Database Management Sixth Edition
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Project Implementation for COSC 5050 Distributed Database Applications Lab6.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
ERM to SQL. Abstraction Layers Conceptual –What data is held An Image and its meta-data Entity-Relationship model (ERM) Logical –How data is organised.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Using ER/Studio.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Module 3: Table Selection
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
True or False? Programming languages can be used to update databases and communicate with other systems. True.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Database Technical Session By: Prof. Adarsh Patel.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Constraints  Constraints are used to enforce rules at table level.  Constraints prevent the deletion of a table if there is dependencies.  The following.
ABC Insurance Co. Paul Barry Steve Randolph Jing Zhou CSC8490 Database Systems & File Management Dr. Goelman Villanova University August 2, 2004.
MySQL. MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multiuser access to a number of databases. A third party.
CS 174: Web Programming September 23 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
FEN  Data Definition: CREATE TABLE, ALTER TABLE  Data Manipulation: INSERT, UPDATE, DELETE  Queries: SELECT SQL: Structured Query Language.
Oracle Data Integrator Transformations: Adding More Complexity
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
2010/11 : [1]PHP with MySQLBuilding Web Applications using MySQL and PHP (W1) PHP with MySQL.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
CS499 Project #3 XML mySQL Test Generation Members Erica Wade Kevin Hardison Sameer Patwa Yi Lu.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Oracle Data Integrator Data Quality (Integrity Control)
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
IT Faculty Software Engineering Seniors UML for a simple DataBase Management System Prepared by: أنس الأسود بشير الفروان زهير الزعبي ياسر المحمد.
Chapter 3: Relational Databases
Level 1-2 Trigger Data Base development Current status and overview Myron Campbell, Alexei Varganov, Stephen Miller University of Michigan August 17, 2000.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Visual Database Creation with MySQL Workbench 도시정보시스템 설계
 CONACT UC:  Magnific training   
Introduction to MySQL  Working with MySQL and MySQL Workbench.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
3 A Guide to MySQL.
Web Routing Designing an Interface
© 2016, Mike Murach & Associates, Inc.
Introduction to Web programming
Database application MySQL Database and PhpMyAdmin
© 2012, Mike Murach & Associates, Inc.
Data Management Innovations 2017 High level overview of DB
Database Connectivity and Web Development
Creating and Managing Database Tables
Presentation transcript:

Web Application Development

Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple SQL table Using PHPMyADMIN Or MySQL command line

QSEE Multi-case diagramming tool –All UML diagrams –++ Entity-Relationship Diagrams –Generates SQL for various targets (including MySQL 4.0) –Implements relationships automatically 1- many : adds primary key on 1-side as columns in the many side to make foreign keys Many-many : adds an new link table with the primary keys from both sides as foreign keys (and a joint primary key) Dependent (weak) entities : foreign key becomes part of the primary key –Sets up the appropriate integrity constraints Action on delete and update for foreign keys

PHPMyAdmin GUI interface to MySQL server (shares) GUI runs on stocks (the PHP server) Full access to a database for –Creating tables –Added data –Browsing the data –Import and Export of tables… –Execute SQL queries (DML) or definitions (DML) But..

Command line MySQL Generated SQL comments are rejected by PHPMyAdmin login to shares directly using putty change directory to your project directory Enter: mysql –p use database source proj.sql

Editing a Table Table editor has to support the functions of: –Browsing the table –Inserting a new row (with validation and defaults) –Deleting a row –Editing a row –Copying (or cloning) an existing row

Common Pattern Could write the script each time by hand Could write a single ‘data-driven’ class –Class must be able to read the table definition from the database (DESCRIBE command) –Class must allow user to control the options offered Some open-source code exists –Here is one by Richard Heyes –

Main script for editor <?php require_once('db.php'); require_once('TableEditor.php'); $editor = new TableEditor($dblink, 'Member'); $editor->setConfig('allowPKEditing', true); $editor->setConfig('allowASearch', false); $editor->setConfig('perPage', 5); $editor->setConfig('title', 'Edit Members'); $editor->setRequiredFields('memberid', 'name'); $editor->display(); ?>