1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 6 Creating.

Slides:



Advertisements
Similar presentations
Chapter 7 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi.
Advertisements

Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Prepared by Jennifer Kreie, New Mexico State UniversityHosted by the University of Arkansas Microsoft Enterprise Consortium SQL Fundamentals Create Student-Team.
Database & Database Designs. Agenda Introduction to Databases & Database Design Recommended Reading Scope of Learning Database Vocabulary Database Characteristics.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 2 Relational Theory DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH.
The Collections Keeper A collections management system Brian J. Mullen.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Concepts of Database Management, 4th Edition, Pratt & Adamski
8 Copyright © Oracle Corporation, All rights reserved. Manipulating Data.
DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
Thomas Connolly and Carolyn Begg’s
Some Introductory Programming 1. Structured Query Language - used for queries. - a standard database product. 2. Visual Basic for Applications - use of.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
1 ORACLE SQL iSQLPlus & SQLPLUS Statements. 1-2 iSQLPlus is a application software layer that allows programmers to utilize SQL to make changes to the.
Getting Started with Oracle Database 11g Release 2 Express Edition Appendix B DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Overview What is SQL Server? Creating databases Administration Security Backup.
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 13 Managing Databases with SQL Server 2000.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 7-1 David M. Kroenke’s Chapter Seven: SQL for Database Construction and.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Introduction to SQL.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 UNIT 6: Chapter 7: Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 4 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 4 Normalization.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 11-1 David M. Kroenke’s Chapter Eleven: Managing Databases with SQL Server.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
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.
Siebel 8.0 Module 2: Overview of EIM Processing Integrating Siebel Applications.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
Creating Tables and Inserting Records -- Not easy to edit! -- check constraints! Create table test1 ( C1 char(5) primary key, C2 Varchar2(15) not null.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 7 (Part a): Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
Database Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
CHAPTER 6: INTRODUCTION TO SQL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Relational Theory and Design
While you are waiting for class to start... (1) Login to SQL Server 2012 Management Studio (2) Execute the file called “SQLLab3.sql”. It is located on.
Oracle 11g: SQL Chapter 4 Constraints.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
PowerBuilder Online Courses - by Prasad Bodepudi Database Painter Primary & Foreign Keys Extended Attributes PowerBuilder System Tables Database Profiles.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 1 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 1 The Role.
13 Copyright © Oracle Corporation, All rights reserved. Maintaining Data Integrity.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 12 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 12 Accessing.
Agenda for Class 2/20/2014 Introduce Microsoft’s SQL Server database management system. Use the lab to discuss how to CREATE, DROP and populate (INSERT)
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
DAY 21: ACCESS CHAPTER 6 & 7 Tazin Afrin October 31,
© 2007 by Prentice Hall2-1 Introduction to Oracle 10g Chapter 2 Overview of SQL and SQL*Plus James Perry and Gerald Post.
Chapter 4 Relational Database, Pivot Charts, and Switchboard.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Concepts of Database Management Seventh Edition Chapter 4 Keys and Relationship.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
CSC314 DAY 8 Introduction to SQL 1. Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SQL OVERVIEW  Structured Query Language  The.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
COP 4540 Database Management
ITD1312 Database Principles Chapter 5: Physical Database Design
More on Oracle Scripts CSC 240 (Blum).
Database Management  .
Insert, Update, Delete Manipulating Data.
Database Design and Development
DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH
Presentation transcript:

1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 6 Creating Databases with Oracle Using SQL Raymond Frost – John Day – Craig Van Slyke

2 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Oracle Data Types Exhibit 6-1: Data Types Available in Oracle

3 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Skydiving Member Database Table Design Exhibit 6-2: Design and Data for the Skydiving Club Member Database

4 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Skydiving Member Data Exhibit 6-2: Design and Data for the Skydiving Club Member Database

5 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Sky_Member Database Script Exhibit 6-3: Script File for the Sky_Member Database

6 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Logging Into Oracle Exhibit 6-4: iSQL*Plus Login Screen Source: Used by permission of Oracle

7 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 iSQL*Plus Work Screen Exhibit 6-5: iSQL*Plus Work Screen Source: Used by permission of Oracle

8 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Executing a Script in iSQL*Plus Exhibit 6-6: Script File Executed in Work Screen Source: Used by permission of Oracle

9 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Arcade Database Table Design Exhibit 6-7: Create the Arcade Database

10 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Arcade Database with Data Exhibit 6-7: Create the Arcade Database

11 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Exhibit 6-8: Script File for the ARCADE Database Arcade Database Script

12 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Exhibit 6-9: Design of ENROLLMENT Database Enrollment Database Script

13 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Enrollment Data Exhibit 6-9: Design of ENROLLMENT Database

14 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Enrollment Data Exhibit 6-9: Design of ENROLLMENT Database

15 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Enrollment Data Exhibit 6-9: Design of ENROLLMENT Database

16 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Enrollment Data Exhibit 6-9: Design of ENROLLMENT Database

17 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Enrollment Data Exhibit 6-9: Design of ENROLLMENT Database

18 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Dropping and Creating Tables Exhibit 6-10: Order for Dropping and Creating Tables Tables must be dropped in the opposite order from which they were created.

19 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Exhibit 6-11: Script File to Create the Enroll Database Enroll Database Script: Part 1

20 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Enroll Database Script: Part 2 Exhibit 6-11: Script File to Create the Enroll Database

21 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Troubleshooting Exhibit 6-12: Reserved Words May Not Be Used as Field Names Reserved words cannot be used as field names.

22 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Troubleshooting Exhibit 6-13: Including a Comma after the Last Field Name Do not include a comma after the last field in the list.

23 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Troubleshooting Exhibit 6-14: Omitting Commas in the Create Table Statement Commas cannot be omitted in the field list.

24 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Troubleshooting Exhibit 6-15: Extra Comma in Column List There should not be a comma at the end of the field list.

25 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Troubleshooting Exhibit 6-16: Extra Comma in Value List There should not be a comma at the end of the value list.

26 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Troubleshooting Exhibit 6-17: Referential Integrity Violation Values in foreign key fields must match the corresponding primary key value.

27 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Practice Exercise 1 Exhibit 6-18: Hospital Database Design

28 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Practice Exercise 1 Exhibit 6-19: Hospital Database Data

29 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Practice Exercise 2 Exhibit 6-20: Acme Database Design

30 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Exhibit 6-21: Acme Database Data Practice Exercise 2

31 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Practice Exercise 3 Exhibit 6-22: Amazon Database Design

32 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 6 Exhibit 6-23: Amazon Database Data Practice Exercise 3