Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.

Slides:



Advertisements
Similar presentations
Management Information Systems, Sixth Edition
Advertisements

Accounting System Design
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Key.
Client/Server Databases and the Oracle 10g Relational Database
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Concepts of Database Management Sixth Edition
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
CSC 2720 Building Web Applications Database and SQL.
Systems Analysis and Design 9th Edition
Structured Query Language SQL: An Introduction. SQL (Pronounced S.Q.L) The standard user and application program interface to a relational database is.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
MS Access 2007 IT User Services - University of Delaware.
Database Relationships Objective 5.01 Understand database tables used in business.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
CSCI 6962: Server-side Design and Programming
Database Lecture # 1 By Ubaid Ullah.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
ASP.NET Programming with C# and SQL Server First Edition
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.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
Introduction to SQL Steve Perry
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
ABC Insurance Co. Paul Barry Steve Randolph Jing Zhou CSC8490 Database Systems & File Management Dr. Goelman Villanova University August 2, 2004.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Relational Database. Database Management System (DBMS)
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
D R. E.F.C ODD ’ S R ULES FOR RDBMS Dr. E.F.Codd is an IBM researcher who first developed the relational data model in 1970.Dr. Codd published a list.
Chapter 16: Using Relational Databases Programming Logic and Design, Third Edition Comprehensive.
Visual Programing SQL Overview Section 1.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
A CCESSING D ATABASES WITH JDBC CH 24 C S 442: A DVANCED J AVA P ROGRAMMING.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
What is MySQL? MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). First released in January, Many.
Database Connectivity and Server-Side Scripting Chapter 12.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
SQL Basics Review Reviewing what we’ve learned so far…….
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Chapter 12 Introducing Databases. Objectives What a database is and which databases are typically used with ASP.NET pages What SQL is, how it looks, and.
Client/Server Databases and the Oracle 10g Relational Database
Relational Database Management System
Chapter 4 Relational Databases
Chapter 7 Working with Databases and MySQL
Chapter 8 Working with Databases and MySQL
Chapter 11 Managing Databases with SQL Server 2000
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Phil Brewster

 One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used  character, numeric, date-time, or other data type (binary, enum, etc.)  Data types determine how you will be able to use data in queries and in application program coding (edit routines)  Do you need to perform calculations on the data?  Do you need the data to be ‘constant’ or ‘variable’?  Must the values be unique (often required for primary keys)?  Can there be ‘missing values’ (allow NULL)? ▪ ‘Missing’ -- NOT to be confused with zeroes or spaces or initial default values!

Set of rules against which to test a relational system (E.F. Codd, 1970) 1. All data represented as tables 2. Logical representation independent from physical storage 3. Single high-level language to build tables, insert/update/delete data 4. Support relational operations (select, project, join) and set operations (union, intersect, difference, division)

5. Support views (alternate ways of looking at tables) 6. Differentiate between unknown (null) and zero 7. Mechanisms to support security and authorization 8. Protect data integrity through transactions and recovery procedures [summary slides for Codd’s Rules: courtesy Dr K. Sward]

 SQL lets you interact with a relational database system  ISO standards – most commands are the same  Yet, also different ‘dialects’ for major database systems ▪ Oracle, Microsoft SQL Server, DB2, MySQL  Need to compare syntax rules across systems you use  Administrative commands to create logical databases, tables, grant user permissions  Application/user commands to load data, insert and update rows, select and order data

 One-to-many data relationships: primary  foreign key

 Many-to-many data relationships: junction tables

 First Normal Form (1NF)  Eliminate repeating groups in individual tables  Create a separate table for each set of related data  Identify each set of related data with a primary key  Second Normal Form (2NF)  Create separate tables for sets of values that apply to multiple records  Relate these tables with a foreign key  Third Normal Form (3NF) – frequently this is ‘overkill’…  Eliminate fields that do not depend on the key

 Can be shared by many applications, many users (clients) at once  Database environment  Database security  Database administration  For application programs (APIs) to access server, need database connectors (drivers)  Remember JDBC for Java? – needs custom drivers  ODBC for almost everything else

 The Community Edition is free (no tech support unless you buy the licensed version)  The product is stable (since version 4)  Scalable, good performance  An alternative to other databases (Microsoft, Oracle) but without as many utilities  Oracle PL/SQL ▪ a powerful way to integrate database logic with application logic (adds procedural programming constructs like if-else to ‘pure’ SQL)  Microsoft SQL Server ▪ proprietary ‘hooks’ integrating with MS applications

Pick the installer for your favorite OS  MySQL Community Server:  MySQL Workbench (GUI tools): html  MySQL database connectors (future):

 Initial access to the MySQL server as root  Create a standard user id + password  Grant permissions  then log back in as user and do not use root!  Create a database  Create tables in the database  Load data into the tables (student.txt, course.txt)  Run queries to view data, sort data, etc.

 Add primary keys to the tables (student2.txt, course2.txt)  Create a junction table  Use foreign key relationships to link tables  Insert rows  Run more complex queries using table joins  Use MySQL Workbench to complete these tasks with GUI tools (if time allows)