All Powder Board and Ski

Slides:



Advertisements
Similar presentations
All Powder Board and Ski
Advertisements

1 All Powder Board and Ski Microsoft Access Workbook Chapter 9: Data Warehouses and Data Mining Jerry Post Copyright © 2007.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 5: Advanced Queries Jerry Post Copyright © 2007.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 6: Forms and Reports Jerry Post Copyright © 2007.
All Powder Board and Ski Microsoft Access Workbook Chapter 3: Database Tables Jerry Post Copyright © 2007.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Database Administration Jerry Post Copyright © 2007.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Data Types and Field Properties 5.01 Understand database tables used in business.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 4: Queries Jerry Post Copyright © 2007.
© 2007 by Prentice Hall3-1 Introduction to Oracle 10g Chapter 3 Creating, Modifying, Renaming, and Deleting Database Tables James Perry and Gerald Post.
Chapter 4 Introduction to MySQL. MySQL “the world’s most popular open-source database application” “commonly used with PHP”
1 All Powder Board and Ski Oracle 9i Workbook Chapter 7: Integrity and Transactions Jerry Post Copyright © 2003.
1 All Powder Board and Ski SQL Server Workbook Chapter 2: Database Design Jerry Post Copyright © 2004.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 7: Integrity and Transactions Jerry Post Copyright © 2003.
Sizing Basics  Why Size?  When to size  Sizing issues:  Bits and Bytes  Blocks (aka pages) of Data  Different Data types  Row Size  Table Sizing.
1.NET Web Forms Business Forms © 2002 by Jerry Post.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 10: Distributed Databases Jerry Post Copyright © 2003.
1 All Powder Board and Ski Oracle 9i Workbook Chapter 9: Database Administration Jerry Post Copyright © 2003.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
All Powder Board and Ski Oracle 9i Workbook Chapter 1 Jerry Post Copyright © 2003.
1 All Powder Board and Ski Oracle 9i Workbook Chapter 10: Distributed Databases Jerry Post Copyright © 2003.
IE 423 – Design of Decision Support Systems Database development – Building Tables
All Powder Board and Ski Microsoft Access Workbook Chapter 3: Database Tables Jerry Post Copyright © 2003.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 6: Forms, Reports, and Applications Jerry Post Copyright © 2003.
1 All Powder Board and Ski Oracle 9i Workbook Chapter 8: Data Warehouses and Data Mining Jerry Post Copyright © 2003.
Advanced Web 2012 Lecture 3 Sean Costain What is a Database? Sean Costain 2012 A database is a structured way of dealing with structured information.
All Powder Board and Ski Microsoft Access Workbook Chapter 2: Database Design Jerry Post Copyright © 2003.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 8: Data Warehouses and Data Mining Jerry Post Copyright © 2003.
8 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
All Powder Board and Ski Oracle 9i Workbook Chapter 3: Database Tables Jerry Post Copyright © 2003.
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Sql DDL queries CS 260 Database Systems.
Mr C Johnston ICT Teacher
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Academic Year 2015 Autumn. MODULE CC2006NI: Data Modelling and Database Systems Academic Year 2015 Autumn.
Ch 3. Working with Tables and Views. Data type Specify type of data to be entered into a column (text, number, datetime, etc) Unicode (National) Datatypes.
Creating E/R Diagrams with SQL Server Management Studio, Writing SQL Queries D0ncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer.
1 All Powder Board and Ski SQL Server Workbook Chapter 5: Advanced Queries Jerry Post Copyright © 2003.
DATABASE MIS 327 Advanced Database 1. DATABASE 2 Objectives  Why are models important in designing systems?  How do you begin a database project? 
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
CS242 SQL. What is SQL? SQL:  stands for Structured Query Language  allows you to access a database  is an ANSI standard computer language  can execute.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 10: Distributed Databases and the Internet All Powder.
McGraw-Hill/Irwin Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9: Database Administration All Powder Board and Ski.
Order Database – ER Diagram
Chapter 1: Introduction All Powder Board and Ski
Chapter 6: Forms, Reports and Applications All Powder Board and Ski
Databases Chapter 9 Asfia Rahman.
CS320 Web and Internet Programming SQL and MySQL
Module 2: Creating Data Types and Tables
Chapter 7: Database Integrity and Transactions
IST 210: Organization of Data
Chapter 2: Database Design All Powder Board and Ski
Unit 16 – Database Systems
Data Definition and Data Types
Lesson 7 Managing Data Creating a database with Web Matrix.
All Powder Board and Ski
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
What is Database Administration
Supplement: Using the DBDesign System
Creating Tables & Inserting Values Using SQL
Chapter 2: Creating And Modifying Database Tables
CS3220 Web and Internet Programming SQL and MySQL
Chapter 4 Introduction to MySQL.
ICT Database Lesson 2 Designing a Database.
CS3220 Web and Internet Programming SQL and MySQL
Introduction to MS ACCESS
SQL (Structured Query Language)
Presentation transcript:

All Powder Board and Ski Oracle 9i Workbook Chapter 2: Database Design Jerry Post Copyright © 2003

DBDesign: An Expert System http://time-post.com/dbdesign Benefits Makes it easy to create database diagrams Saves data in central location, so changes can be made from almost any computer Provides immediate detailed feedback on the design Requirements Instructors must ask for a free account Instructors and students need a Java-enabled Web browser

Access Data Types (Domains) Name Data Bytes Text (characters) fixed variable national/Unicode memo CHAR or NCHAR VARCHAR2 NVARCHAR2 LONG 2000 bytes 4000 bytes 2 gigabytes Fixed Variable Numeric Byte (8 bits) Integer (16 bits) Long (32 bits) (64 bits) Fixed precision Float Double Currency Yes/No NUMBER(38) NUMBER(p,s) NUMBER NUMBER(p,4) NA 38 digits p: 1...38, s: -84...127 22 Date/Time Interval DATE, TIMESTAMP INTERVAL YEAR/MONTH 1/1/-4712 to 12/31/9999 (sec) Image LONG RAW or BLOB 2 gigabytes, 4 gigabytes http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96540/sql_elements2a.htm#54201

Initial Business Objects Sale Customer SaleID SaleDate CustomerID EmployeeID CustomerID LastName FirstName Phone Address City State ZIP Rental Employee RentID RentDate CustomerID ExpectedReturn EmployeeID TaxpayerID LastName FirstName Address City State ZIP

Associations or Relationships Sale Customer 1…1 SaleID SaleDate CustomerID EmployeeID CustomerID LastName FirstName Phone Address City State ZIP 0…* Rental Employee RentID RentDate CustomerID ExpectedReturn EmployeeID TaxpayerID LastName FirstName Address City State ZIP

Getting Started Enter the key numbers you received Create a username and password. Enter your correct name, e-mail address and StudentID

Class Registration Successful account creation Select your university and class Enter the admit code

DBDesign: Example Menu Class (entity) Status line Available columns Corrections

Relationships Drag-and-drop column Select min and max for both sides of the relationship

Design Errors Add SKU to the Sale table Connect the Inventory table to the Sale table Double click the diagnostic message Possible errors are highlighted

More Errors Try setting SKU as a key It still causes problems because SaleDate does not depend on the SKU

Split Many-to-Many Relationship Inventory Sale 1…1 1…1 SKU Size QOH SaleID SaleDate CustomerID EmployeeID SaleItem 1…* SaleID SKU QuantitySold SalePrice 0…*

Ski Shop Inventory Item: 196 cm Item: 181 cm Ski shops carry multiple lengths of each ski or board model. Model information refers to the overall type of board or ski. Inventory information refers to an individual ski or board—defined by its length. Model: Rossignol Axium Photo: www.rossignol.com

Models and Items

Customer Skill Level CustomerID, LastName, … Style, SkillLevel Business rule: Each customer can have one skill in many styles. Business rule: Each style can apply to more than one customer. Need a table with both attributes as keys. CustomerID, LastName, … Style, SkillLevel But you cannot include LastName, FirstName and so on, because then you would have to re-enter that data for each customer skill.

Customer Style Skills Style Customer Style StyleDescription CustomerID LastName FirstName Phone Address City State ZIP CustomerSkill CustomerID Style SkillLevel SkillLevel SkillLevel SkillDescription