SQL Workshop. Database Design. Doug Shook

Size: px
Start display at page:

Download "SQL Workshop. Database Design. Doug Shook"

Transcription

1 SQL Workshop Database Design Doug Shook

2 Data Structure Design Real-world system Database system People Tables Documents Facilities Columns Other systems Rows 2

3 Data Structure Design Relational database systems should model real world elements The entity represents an object The columns represent attributes Each row represents an instance The technique used to create a design is called entity relationship (ER) modeling 3

4 Data Structure Design Six step process Identify data elements Subdivide each element into its smallest useful components Identify the tables and assign columns Identify the primary and foreign keys Review whether the data structure is normalized Identify the indexes 4

5 Identifying data elements Where can we find data elements? Data elements are not always equal to entities Typically an entity will consist of many elements 5

6 Identifying data elements Acme Fabrication, Inc. Custom Contraptions, Contrivances and Confabulations 1234 West Industrial Way East Los Angeles California fax Invoice Number: Invoice Date: Terms: I /05/12 Net 30 Part No. Qty. Description Unit Price Extension CUST Design service, hr Baling wire, 25x3ft roll Duct tape, black, yd Rubber tubing, 100ft roll CUST281 7 Assembly, hr CUST917 2 Testing, hr Sales Tax Your salesperson : Ruben Goldberg, ext 4512 Accounts receivable: Inigo Jones, ext 4901 $7, PLEASE PAY THIS AMOUNT Thanks for your business! 6

7 Identifying data elements The data elements on the invoice document Vendor name Vendor address Vendor phone number Vendor fax number Vendor web address Invoice number Invoice date Invoice terms Item part number Item quantity Item description Item unit price Item extension Vendor sales contact name Vendor sales contact extension Vendor AR contact name Vendor AR contact extension Invoice total 7

8 Subdividing Data Elements Finding the smallest useful element can be tricky What happens if we do this incorrectly? When in doubt, use smaller elements 8

9 Subdividing Data Elements Vendor sales contact name Ruben Goldberg Vendor sales contact first name Ruben Vendor sales contact last name Goldberg Vendor address 1234 West Industrial Way, East Los Angeles, California Street and number City State Zip 1234 West Industrial Way East Los Angeles California

10 Identifying Tables and Columns Begin by grouping data elements into entities Some might belong to multiple entities Some might not be needed The entities will eventually become tables The data elements will become columns Let s try this with the data elements on slide 7 Can you think of any additional elements that would be nice to include but weren t on the invoice? 10

11 Identifying Tables and Columns Possible tables and columns for an A/P system Vendors Vendor name Vendor address Vendor city Vendor state Vendor zip code Vendor phone number Vendor fax number Vendor web address Vendor contact first name Vendor contact last name Vendor contact phone Vendor AR first name Invoices Invoice number* Invoice date Terms* Invoice total Payment date Payment total Invoice due date Credit total Account number* 11

12 Identifying Tables and Columns Possible tables and columns for an A/P system (continued) Vendors Vendor AR last name Vendor AR phone Terms* Account number* Invoice line items Invoice number* Item part number Item quantity Item description Item unit price Item extension Account number* Sequence number 12

13 Identifying Primary and Foreign Keys Primary keys must uniquely identify each record Use an existing column, if possible Primary keys should almost never change Use an identity column, if necessary Relationships play a role in choosing keys One-to-many relationships should have a foreign key on the many side Many-to-many relationships should use a linking table One-to-one relationships should share primary keys 13

14 Identifying Primary and Foreign Keys Vendors Invoices InvoiceLineItems VendorID VendorName VendorAddress VendorCity VendorState VendorZipCode VendorPhone VendorContactFName VendorContactLName Terms AccountNo InvoiceID VendorID InvoiceNumber InvoiceDate InvoiceTotal PaymentTotal CreditTotal Terms InvoiceDueDate PaymentDate AccountNo InvoiceID InvoiceSequence AccountNo InvoiceLineItemDescription ItemQuantity ItemUnitPrice InvoiceLineItemAmount 14

15 Identifying Primary and Foreign Keys Employees EmployeeID FirstName LastName Memberships EmployeeID CommitteeID Linking table Committees CommitteeID CommitteeName Employees EmployeeID FirstName LastName EmployeePhotos EmployeeID EmployeePhoto 15

16 Enforcing Relationships Maintaining the relationships between tables is extremely important Referential integrity Two ways to enforce referential integrity Foreign key constraints Delete related rows or throw an error Triggers Executed upon insert, update, or delete 16

17 Enforcing Relationships Operations that can violate referential integrity Deleting a row from the primary key table If the foreign key table contains one or more rows related to the deleted row Inserting a row in the foreign key table If the foreign key value doesn t have a matching primary key value in the related table Updating the value of a foreign key If the new foreign key value doesn t have a matching primary key value in the related table Updating the value of a primary key If the foreign key table contains one or more rows related to the row that s changed 17

18 Normalization The goal of normalization is to reduce data redundancy Ideally, each table contains information about a single entity, and each piece of data is stored in only one place Normalization is accomplished by applying forms Seven forms total Three is typically considered to be sufficient 18

19 Normalization Benefits More tables -> more indexes More efficient Simplifies maintenance Reduces storage More efficient insert, update, and delete 19

20 Normalization First normal form The value stored at the intersection of each row and column must be scalar A table must not contain any repeating column Will still likely have repeating values in rows 20

21 Normalization Unnormalized invoice data The invoice data with a column that contains repeating values The invoice data with repeating columns 21

22 Normalization The invoice data in first normal form 22

23 Normalization Second Normal Form Every non-key column must depend on the entire primary key If the above is false it indicates there are multiple entities within the table Application Move columns that don t depend on the entire key to a different table Establish a relationship between the tables The step removes redundant row data 23

24 Normalization The invoice data in first normal form with keys added 24

25 Normalization The invoice data in second normal form 25

26 Normalization Third Normal Form Each non-key column must depend only on the primary key If a column does not depend only on the primary key Assigned to the wrong table Can be computed from other columns Derived data 26

27 Normalization Invoices InvoiceID VendorName VendorAddress VendorCity VendorState VendorZipCode VendorPhone VendorContactFName VendorContactLName InvoiceNumber InvoiceDate InvoiceTotal PaymentTotal CreditTotal Terms InvoiceDueDate PaymentDate AccountNo InvoiceLineItems InvoiceID InvoiceSequence AccountNo InvoiceLineItemDescription ItemQuantity ItemUnitPrice InvoiceLineItemAmount 27

28 Normalization Does the vendor information depend only on the InvoiceID column? Does the Terms column depend only on the InvoiceID column? Does the AccountNo column depend only on the InvoiceID column? Can the InvoiceDueDate and InvoiceLineItemAmount columns be derived from other data? 28

29 Normalization Vendors VendorID VendorName VendorAddress VendorCity VendorState VendorZipCode VendorPhone VendorContactFName VendorContactLName DefaultTermsID DefaultAccountNo Invoices InvoiceID VendorID InvoiceNumber InvoiceDate InvoiceTotal PaymentTotal CreditTotal TermsID InvoiceDueDate PaymentDate Terms TermsID TermsDescription TermsDueDays InvoiceLineItems InvoiceID InvoiceSequence AccountNo InvoiceLineItemAmount InvoiceLineItemDescription GLAccounts AccountNo AccountDescription 29

30 Denormalization When is denormalization appropriate? 30

31 Denormalization When is denormalization appropriate? When a joined column is used repeatedly, consider moving that column to the primary key table If a table is updated infrequently, denormalization can increase efficiency Include derived columns if they are used frequently in search conditions Bottom line: if it increases performance, then try it 31

32 Denormalization Vendors VendorID VendorName VendorAddress VendorZipCode VendorAreaCodeID VendorPhone VendorContactFName VendorContactLName DefaultTermsID DefaultAccountNo ZipCodes ZipCode City State AreaCodes AreaCodeID AreaCode Invoices InvoiceID VendorID InvoiceNumber InvoiceDate InvoiceTotal PaymentTotal CreditTotal TermsID InvoiceDueDate PaymentDate Terms TermsID TermsDescription TermsDueDays InvoiceLineItems InvoiceID InvoiceSequence AccountNo InvoiceLineItemQty InvoiceLineItemUnitPrice LineItemDescriptionID LineItemDescriptions LineItemDescriptionID InvoiceLineItemDescription GLAccounts AccountNo AccountDescription 32

33 Identifying Indexes Indexes are used to locate information more quickly Two types Clustered Defines the sequence in which rows are stored Only one per table Created for primary key by default Nonclustered Up to 249 for one table But don t use too many... 33

34 Identifying Indexes When to create an index When the column is a foreign key When the column is used frequently in searches or joins When the column contains a large number of distinct values When the column is updated infrequently 34

35 35 Exercises Design a database diagram for a product orders database with the following tables. Identify what columns might be included in each table, the primary keys for each table, and foreign keys for each table. Customers Orders OrderLineItems Products

36 36 Exercises Add two tables into the database from the previous problem: Shippers Employees Explain how these tables fit into your design. Identify which columns in this database should be indexed, and why.

37 37 Exercises Design a database diagram that allows individuals to be assigned membership in one or more groups. Each group can have any number of individuals and each individual can belong to any number of groups. Create additional tables and columns if necessary. Explain your design decisions.

38 38 Exercises Modify your design from the previous exercise to keep track of the role served by each individual in the group. Each individual can only serve one role in each group. Each group has a unique set of roles that members can fulfill. Create additional tables and columns as necessary. Explain your design decisions.

Database Management Systems

Database Management Systems Database Management Systems Design and Creation Doug Shook Database Creation Design is very important Long lasting implications How is our data being stored again? How do we manipulate data? 2 Example

More information

SQL Workshop. Joins. Doug Shook

SQL Workshop. Joins. Doug Shook SQL Workshop Joins Doug Shook Inner Joins Joins are used to combine data from multiple tables into one result Requires the name of the column from the second table, along with a condition that defines

More information

How to design a database

How to design a database Chapter 16 How to design a database A database system is modeled after a real-word system 2017, Mike Murach & Associates, Inc. C 16, Slide 1 2017, Mike Murach & Associates, Inc. C 16, Slide 4 Objectives

More information

Lecture 9: Database Design. Wednesday, February 18, 2015

Lecture 9: Database Design. Wednesday, February 18, 2015 Lecture 9: Database Design Wednesday, February 18, 2015 Agenda Review HW #2 Discuss Normalization Theory Take Quiz #3 Normal Forms 1st Normal Form (1NF): will discuss briefly 2nd Normal Form (2NF): will

More information

HNDIT 1105 Database Management Systems

HNDIT 1105 Database Management Systems HNDIT 1105 Database Management Systems How to retrieve data in a single table By S. Sabraz Nawaz M.Sc. In IS (SLIIT), PGD in IS (SLIIT), BBA (Hons.) Spl. in IS (SEUSL), MIEEE, MAIS Senior Lecturer in MIT

More information

Chapter 11 How to create databases, tables, and indexes

Chapter 11 How to create databases, tables, and indexes Chapter 11 How to create databases, tables, and indexes Murach's MySQL, C11 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Given the design for a database, write the DDL statements to

More information

SQL Workshop. Introduction Queries. Doug Shook

SQL Workshop. Introduction Queries. Doug Shook SQL Workshop Introduction Queries Doug Shook SQL Server As its name implies: its a data base server! Technically it is a database management system (DBMS) Competitors: Oracle, MySQL, DB2 End users (that

More information

Conceptual Design. The Entity-Relationship (ER) Model

Conceptual Design. The Entity-Relationship (ER) Model Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Relationship Set Representation ssn name lot since

More information

Chapter 4 How to retrieve data from two tables

Chapter 4 How to retrieve data from two tables Chapter 4 How to retrieve data from two tables PL/SQL, C4 2008, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Use the explicit syntax to code an inner join that returns data from a single table

More information

Lesson 05: How to Insert, Update, and Delete Data. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL

Lesson 05: How to Insert, Update, and Delete Data. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL Lesson 05: How to Insert, Update, and Delete Data By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL The syntax of the INSERT statement INSERT [INTO] table_name [(column_list)] [DEFAULT] VALUES (expression_1

More information

SQL Workshop. Summaries. Doug Shook

SQL Workshop. Summaries. Doug Shook SQL Workshop Summaries Doug Shook Aggregates Also called column functions AVG, SUM, MIN, MAX, COUNT Will use all values can use distinct if desired All except COUNT ignore null values A summary query that

More information

SQL Workshop. Subqueries. Doug Shook

SQL Workshop. Subqueries. Doug Shook SQL Workshop Subqueries Doug Shook Subqueries A SELECT statement within a SELECT statement Four ways to code one: WHERE (*) HAVING (*) FROM SELECT Syntax is the same Rare to see GROUP BY or HAVING 2 Subqueries

More information

MIT Database Management Systems

MIT Database Management Systems MIT 22033 Database Management Systems Lesson 04: How to retrieve data from two or more tables By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL How to code an inner join A join is used to combine columns

More information

Lecture 3: Continuing SQL. Monday, February 2, 2015

Lecture 3: Continuing SQL. Monday, February 2, 2015 Lecture 3: Continuing SQL Monday, February 2, 2015 1 Announcements Homework #1 has been posted on Canvas and is due by 4pm next Monday FoCS Career Night this Wednesday from 5:00 pm to 7:30 pm CNS Spring

More information

Chapter 3 How to retrieve data from a single table

Chapter 3 How to retrieve data from a single table Chapter 3 How to retrieve data from a single table Murach's MySQL, C3 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Code SELECT statements that require any of the language elements presented

More information

Chapter 7 How to code subqueries

Chapter 7 How to code subqueries Chapter 7 How to code subqueries Murach's MySQL, C7 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Code SELECT statements that require subqueries. Knowledge Describe the way subqueries

More information

Homework Assignment. 1. Stored Procedures (SPs)

Homework Assignment. 1. Stored Procedures (SPs) Homework Assignment In this homework, you will practice how to create database objects such as stored procedures, stored functions, triggers, and events. 1. Stored Procedures (SPs) Stored procedure is

More information

Chapter 1 An introduction to relational databases and SQL

Chapter 1 An introduction to relational databases and SQL Chapter 1 An introduction to relational databases and SQL Murach's MySQL, C1 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Knowledge Identify the three main hardware components of a client/server

More information

Ken s SQL Syntax Refresher

Ken s SQL Syntax Refresher Ken s SQL Syntax Refresher 27Apr10 Ken s SQL Syntax Refresher 1 Select SELECT [ * ALL DISTINCT column1, column2 ] FROM table1 [, table2 ]; SELECT [ * ALL DISTINCT column1, column2 ] FROM table1 [, table2

More information

From Murach Chap. 9, second half. Schema Refinement and Normal Forms

From Murach Chap. 9, second half. Schema Refinement and Normal Forms From Murach Chap. 9, second half The need for normalization A table that contains repeating columns Schema Refinement and Normal Forms A table that contains redundant data (same values repeated over and

More information

Chapter 8 How to work with data types

Chapter 8 How to work with data types Chapter 8 How to work with data types Murach's MySQL, C8 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Code queries that convert data from one data type to another. Knowledge Describe

More information

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports Version 07/11/09 Microsoft Office 2007 PDF Picture Tutorial Series Databases Tables, Forms, Subforms, and the Lookup Wizard May 2009 by Floyd Jay Winters and Julie Manchester winterf@mccfl.edu Database

More information

SEE GRADING CRITERIA AT THE BOTTOM. Database Tables Lookup Wizard Relationships Forms Queries Reports

SEE GRADING CRITERIA AT THE BOTTOM. Database Tables Lookup Wizard Relationships Forms Queries Reports Microsoft Office 2007 PDF Picture Tutorial Series Databases Tables, Forms, Queries, Lookup Wizard, Relationships August 2010 by Floyd Jay Winters and Julie Manchester winterf@scf.edu SEE GRADING CRITERIA

More information

Outer Join, More on SQL Constraints

Outer Join, More on SQL Constraints Outer Join, More on SQL Constraints CS430/630 Lecture 10 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Outer Joins Include in join result non-matching tuples Result tuple

More information

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2) TRAINING & REFERENCE murach s Oracle SQL and PL/SQL (Chapter 2) works with all versions through 11g Thanks for reviewing this chapter from Murach s Oracle SQL and PL/SQL. To see the expanded table of contents

More information

Physical Design of Relational Databases

Physical Design of Relational Databases Physical Design of Relational Databases Chapter 8 Class 06: Physical Design of Relational Databases 1 Physical Database Design After completion of logical database design, the next phase is the design

More information

MIS2502: Data Analytics Relational Data Modeling. Jing Gong

MIS2502: Data Analytics Relational Data Modeling. Jing Gong MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical

More information

Accounting Information Systems, 2e (Kay/Ovlia) Chapter 2 Accounting Databases. Objective 1

Accounting Information Systems, 2e (Kay/Ovlia) Chapter 2 Accounting Databases. Objective 1 Accounting Information Systems, 2e (Kay/Ovlia) Chapter 2 Accounting Databases Objective 1 1) One of the disadvantages of a relational database is that we can enter data once into the database, and then

More information

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built

More information

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Detailed Data Modelling: Attribute Collection and Normalisation of Data Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed

More information

HOW TO CREATE AND MAINTAIN DATABASES AND TABLES. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL

HOW TO CREATE AND MAINTAIN DATABASES AND TABLES. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL HOW TO CREATE AND MAINTAIN DATABASES AND TABLES By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate

More information

Chapter 9 How to use functions

Chapter 9 How to use functions Chapter 9 How to use functions Murach's MySQL, C9 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Applied Code queries that format numeric or date/time data. Code queries that require any of the

More information

MIS2502: Data Analytics Relational Data Modeling. Jing Gong

MIS2502: Data Analytics Relational Data Modeling. Jing Gong MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical

More information

Database Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 2-3 Roadmap You are here What Is a Table? Relational Databases Conceptual Data Modeling Data Modeling Terminology Unique Identifiers and Primary Keys Relationships and Foreign Keys

More information

Database Application Development Oracle PL/SQL, part 2. CS430/630 Lecture 18b

Database Application Development Oracle PL/SQL, part 2. CS430/630 Lecture 18b Database Application Development Oracle PL/SQL, part 2 CS430/630 Lecture 18b Murach Chapter 14 How to manage transactions and locking PL/SQL, C14 2014, Mike Murach & Associates, Inc. Slide 2 Objectives

More information

Relational Database Components

Relational Database Components Relational Database Components Chapter 2 Class 01: Relational Database Components 1 Class 01: Relational Database Components 2 Conceptual Database Design Components Class 01: Relational Database Components

More information

Relational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology.

Relational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology. III. Introduction to the Relational Database Model Relational Database Model In 1970, E. F. Codd published A Relational Model of Data for Large Shared Data Banks in CACM. In the early 1980s, commercially

More information

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling The objective of detailed data modelling is to develop a detailed data structure that: Detailed Data Modelling: Attribute Collection

More information

Microsoft Office Access 2007: Intermediate Course 01 Relational Databases

Microsoft Office Access 2007: Intermediate Course 01 Relational Databases Microsoft Office Access 2007: Intermediate Course 01 Relational Databases Slide 1 Relational Databases Course objectives Normalize tables Set relationships between tables Implement referential integrity

More information

ShipRite s Account Receivable Instructions

ShipRite s Account Receivable Instructions ShipRite s Account Receivable Instructions Setting up a new account Click on the POS button Enter the existing customer s PHONE number here. If they are in the database, their information will appear at

More information

COMP 430 Intro. to Database Systems

COMP 430 Intro. to Database Systems COMP 430 Intro. to Database Systems Multi-table SQL Get clickers today! Slides use ideas from Chris Ré and Chris Jermaine. The need for multiple tables Using a single table leads to repeating data Provides

More information

Full file at

Full file at David M. Kroenke and David J. Auer Database Concepts (5 th Edition) Instructor s Manual CHAPTER TWO THE RELATIONAL MODEL Prepared by David J. Auer Western Washington University All rights reserved. No

More information

Normalization. VI. Normalization of Database Tables. Need for Normalization. Normalization Process. Review of Functional Dependence Concepts

Normalization. VI. Normalization of Database Tables. Need for Normalization. Normalization Process. Review of Functional Dependence Concepts VI. Normalization of Database Tables Normalization Evaluating and correcting relational schema designs to minimize data redundancies Reduces data anomalies Assigns attributes to tables based on functional

More information

1.264 Lecture 7. Introduction to SQL

1.264 Lecture 7. Introduction to SQL 1.264 Lecture 7 Introduction to SQL Structured Query Language (SQL) Lecture 7: Data manipulation language (DML): SELECT, INSERT, DELETE, UPDATE Joins Lecture 8: DML continued, and data definition language

More information

Database Management Systems

Database Management Systems Database Management Systems Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Computer Science Department 2015 2016 Department of Computer Science

More information

1.264 Lecture 8. SQL continued Connecting to database servers

1.264 Lecture 8. SQL continued Connecting to database servers 1.264 Lecture 8 SQL continued Connecting to database servers Subqueries SQL subqueries let you use the results of one query as part of another query. Subqueries Are often natural ways of writing a statement

More information

Database Logical Design

Database Logical Design Database Logical Design CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Relational model is a logical model Based on mathematical theories and rules Two ways to design a relational

More information

Chapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model.

Chapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model. Chapter 6: Entity-Relationship Model The Next Step: Designing DB Schema Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common

More information

CS121 MIDTERM REVIEW. CS121: Relational Databases Fall 2017 Lecture 13

CS121 MIDTERM REVIEW. CS121: Relational Databases Fall 2017 Lecture 13 CS121 MIDTERM REVIEW CS121: Relational Databases Fall 2017 Lecture 13 2 Before We Start Midterm Overview 3 6 hours, multiple sittings Open book, open notes, open lecture slides No collaboration Possible

More information

Overview. Data Integrity. Three basic types of data integrity. Integrity implementation and enforcement. Database constraints Transaction Trigger

Overview. Data Integrity. Three basic types of data integrity. Integrity implementation and enforcement. Database constraints Transaction Trigger Data Integrity IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview Three basic types of data integrity Integrity implementation and enforcement Database constraints Transaction Trigger 2 1 Data Integrity

More information

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes. Chapter 6: Entity-Relationship Model Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common data organization model The Relational

More information

A Guide to SQL, Ninth Edition. Chapter Two Database Design Fundamentals

A Guide to SQL, Ninth Edition. Chapter Two Database Design Fundamentals A Guide to SQL, Ninth Edition Chapter Two Database Design Fundamentals Objectives Understand the terms entity, attribute, and relationship Understand the terms relation and relational database Understand

More information

Testpassport. Банк экзамен

Testpassport. Банк экзамен Testpassport Банк экзамен самое хорошое качество самая хорошая служба Exam : 70-433 Title : TS: Microsoft SQL Server 2008, Database Development Version : DEMO 1 / 8 1.You have a user named John. He has

More information

Relational Model (cont d) & Entity Relational Model. Lecture 2

Relational Model (cont d) & Entity Relational Model. Lecture 2 Relational Model (cont d) & Entity Relational Model Lecture 2 Relational Database Operators Relational algebra Defines theoretical way of manipulating table contents using relational operators: SELECT

More information

Andrey Zavadskiy. Database Modeling In Practice

Andrey Zavadskiy. Database Modeling In Practice Andrey Zavadskiy Database Modeling In Practice About me Solutions architect, SQL &.NET developer Interests: SQL Server, Entity Framework, Backend, MVC http://andreyzavadskiy.com https://www.facebook.com/andrey.k.zavadskiy

More information

ikan Software ikan Cloud AP Input Data File Format Guide

ikan Software ikan Cloud AP Input Data File Format Guide Introduction The ikan Cloud AP solution requires input data files from up to six sources. The number of input data files required depends on the ikan Cloud AP type. For ikan Cloud AP (Basic) the following

More information

New Features in Sage BusinessVision 2019 ( )

New Features in Sage BusinessVision 2019 ( ) New Features in Sage BusinessVision 2019 (7.92.01) 2018 Sage Software, Inc. All rights reserved. Sage Software, Sage Software logos, and the Sage Software product and service names mentioned herein are

More information

Genesis Advantage. Version 7

Genesis Advantage. Version 7 Welcome to Genesis Advantage version 7! We have packed many new features and enhancements into this release. Most of these features were suggested by our clients and we appreciate your input. We have included

More information

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot Entity-Relationship odel (ER) IV. Entity Relationship odeling Basis of an Entity-Relationship Diagram (ERD) A design technique Diagrams entities sets (with attributes) and the relationship between the

More information

CS W Introduction to Databases Spring Computer Science Department Columbia University

CS W Introduction to Databases Spring Computer Science Department Columbia University CS W4111.001 Introduction to Databases Spring 2018 Computer Science Department Columbia University 1 in SQL 1. Key constraints (PRIMARY KEY and UNIQUE) 2. Referential integrity constraints (FOREIGN KEY

More information

ORDER AND PAYMENT SUMMARY FORM

ORDER AND PAYMENT SUMMARY FORM ORDER AND PAYMENT SUMMARY FORM COMPANY NAME: BOOTH #: SQ. FT.: ADDRESS: PHONE #: CITY: STATE: ZIP: FAX #: TODAY S DATE: ON-SITE CONTACT NAME: CELL #: SUBMITTED BY: EVENT NAME: BEA DATE RECEIVED: FOR OFFICE

More information

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung MIS2502: Data Analytics Relational Data Modeling - 1 JaeHwuen Jung jaejung@temple.edu http://community.mis.temple.edu/jaejung Where we are Now we re here Data entry Transactional Database Data extraction

More information

MIS2502: Data Analytics Relational Data Modeling (2) Alvin Zuyin Zheng

MIS2502: Data Analytics Relational Data Modeling (2) Alvin Zuyin Zheng MIS2502: Data Analytics Relational Data Modeling (2) Alvin Zuyin Zheng zheng@temple.edu http://community.mis.temple.edu/zuyinzheng/ Let Move From Model to Implementation Implementing the ERD As a database

More information

Information Systems Development COMM005 (CSM03) Autumn Semester 2009

Information Systems Development COMM005 (CSM03) Autumn Semester 2009 Information Systems Development COMM005 (CSM03) Autumn Semester 2009 Dr. Jonathan Y. Clark Email: j.y.clark@surrey.ac.uk Course Website: www.computing.surrey.ac.uk/courses/csm03/isdmain.htm Slide 1 Adapted

More information

Database Logical Design

Database Logical Design Database Logical Design IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview Relational model is a logical model Based on mathematical theories and rules Two ways to design a relational

More information

Invoice 13 Pro Outline

Invoice 13 Pro Outline Invoice 13 Pro Outline Invoice 13 Pro is a feature rich productivity tool for the small business or company from 1 to 30 users. It is notjust an Invoicing software. It is in fact an Invoicing, Accounts

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!  We offer free update service for one year PASS4TEST \ http://www.pass4test.com We offer free update service for one year Exam : 70-762 Title : Developing SQL Databases Vendor : Microsoft Version : DEMO Get Latest & Valid 70-762 Exam's Question

More information

Accounts Receivable Customer

Accounts Receivable Customer Accounts Receivable Customer Contents Overview... 1 Document Layout... 2 General Information Tab... 3 Corporate Information Tab... 3 Contact Information Tab... 4 Addresses Tab... 4 Overview The Customer

More information

CHAPTER 11. Data Normalization

CHAPTER 11. Data Normalization CHAPTER 11 Data Normalization CHAPTER OBJECTIVES How the relational model works How to build use-case models for predicting data usage How to construct entity-relationship diagrams to model your data How

More information

Lizzy API. Introduction: Available REST Methods

Lizzy API. Introduction: Available REST Methods Lizzy API Last Modified By: Glenn Hancock Last Modified: 08/14/2017 Version: 2.0.0.11 Introduction: This document covers the use of the Lizzy API, this API is a REST interface. The Lizzy API makes use

More information

The Seven Hidden Challenges of Application Integration

The Seven Hidden Challenges of Application Integration The Seven Hidden Challenges of Application Integration MARCH 2010 WRITTEN BY PETER R. CHASE EXECUTIVE VICE PRESIDENT, SCRIBE SOFTWARE CORPORATION PUBLISHED BY SCRIBE SOFTWARE CORPORATION 2009. ALL RIGHTS

More information

The Relational Data Model and Relational Database Constraints

The Relational Data Model and Relational Database Constraints CHAPTER 5 The Relational Data Model and Relational Database Constraints Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-2 Chapter Outline Relational Model Concepts Relational Model Constraints

More information

Relational Data Model

Relational Data Model Relational Data Model 1. Relational data model Information models try to put the real-world information complexity in a framework that can be easily understood. Data models must capture data structure

More information

Exam code: Exam name: Database Fundamentals. Version 16.0

Exam code: Exam name: Database Fundamentals. Version 16.0 98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following

More information

Introduction to Relational Database Concepts. Copyright 2011, Oracle. All rights reserved.

Introduction to Relational Database Concepts. Copyright 2011, Oracle. All rights reserved. Introduction to Relational Database Concepts Copyright 2011, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn to: Define a primary key Define a foreign key Define

More information

EXAM TS: Microsoft SQL Server 2008, Database Development. Buy Full Product.

EXAM TS: Microsoft SQL Server 2008, Database Development. Buy Full Product. Microsoft EXAM - 70-433 TS: Microsoft SQL Server 2008, Database Development Buy Full Product http://www.examskey.com/70-433.html Examskey Microsoft 70-433 exam demo product is here for you to test the

More information

Report Assistant for M icro so ft D yn am ics S L Accounts Payable Module

Report Assistant for M icro so ft D yn am ics S L Accounts Payable Module Report Assistant for M icro so ft D yn am ics S L Accounts Payable Module Last Revision: June 15, 2006 Copyright Manual copyright 2006 Microsoft Corporation. All rights reserved. Your right to copy this

More information

Vendor Payment Remittance Portal User Guide

Vendor Payment Remittance Portal User Guide Vendor Payment Remittance Portal User Guide Rev 3US 1-2016 Table of Contents Section 1: Logging into Nexonia Page 3 Section 2: Managing Account General Information Page 4 Payment Information Page 5 Uploading

More information

Entity-Relationship Model &

Entity-Relationship Model & Entity-Relationship Model & IST 210 Diagram Todd S. Bacastow IST 210: Organization of data 2/1/2004 1 Design Principles Setting client has (possibly vague) idea of what he/she wants. YOUR task must design

More information

Report Assistant for Microsoft Dynamics SL Accounts Payable Module

Report Assistant for Microsoft Dynamics SL Accounts Payable Module Report Assistant for Microsoft Dynamics SL Accounts Payable Module Last Revision: October 2012 (c)2012 Microsoft Corporation. All rights reserved. This document is provided "as-is." Information and views

More information

01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints

01/01/2017. Chapter 5: The Relational Data Model and Relational Database Constraints: Outline. Chapter 5: Relational Database Constraints Chapter 5: The Relational Data Model and Relational Database Constraints: Outline Ramez Elmasri, Shamkant B. Navathe(2017) Fundamentals of Database Systems (7th Edition),pearson, isbn 10: 0-13-397077-9;isbn-13:978-0-13-397077-7.

More information

Databases - Classic Models

Databases - Classic Models Databases - Classic Models Gordon Royle School of Mathematics & Statistics University of Western Australia Gordon Royle (UWA) Classic Models 1 / 33 This lecture This lecture analyses a freely available

More information

Relational Model. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011

Relational Model. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011 Relational Model IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview What is the relational model? What are the most important practical elements of the relational model? 2 Introduction

More information

Custom Fields in QuickBooks

Custom Fields in QuickBooks Custom Fields in QuickBooks November 20, 2013 By Charlie Russell 41 Replies Every business has some sort of unique information that is important to its operation. While QuickBooks Desktop provides the

More information

AORN GROUP MEMBERSHIP Facility Program Application CHECKLIST IMPORTANT PLEASE READ ALL INSTRUCTIONS BEFORE COMPLETING GROUP MEMBERSHIP APPLICATION

AORN GROUP MEMBERSHIP Facility Program Application CHECKLIST IMPORTANT PLEASE READ ALL INSTRUCTIONS BEFORE COMPLETING GROUP MEMBERSHIP APPLICATION IMPORTANT PLEASE READ ALL INSTRUCTIONS BEFORE COMPLETING GROUP MEMBERSHIP APPLICATION To ensure timely processing of your application, please ensure information is complete, accurate, and legible (if hand-written).

More information

Homework Assignment 3. November 9th, 2017 Due on November 23th, 11:59pm (midnight) CS425 - Database Organization Results

Homework Assignment 3. November 9th, 2017 Due on November 23th, 11:59pm (midnight) CS425 - Database Organization Results Name CWID Homework Assignment 3 November 9th, 2017 Due on November 23th, 11:59pm (midnight) CS425 - Database Organization Results Please leave this empty! 3.1 3.2 3.3 Sum Instructions Try to answer all

More information

Documentation: Data Import Tool

Documentation: Data Import Tool 1 Documentation: Data Import Tool 1. Purpose The purpose of the import tool is to bring data from any other accounting or e commerce program into AccountingSuite in a quick, efficient way. 2. User Definition

More information

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Diagram ID-Dependent and Weak Entities Ray Lockwood Points: An ID-dependent entity is an entity whose identifier (key) includes the identifier

More information

Modeling Your Data. Chapter 2. cs542 1

Modeling Your Data. Chapter 2. cs542 1 Modeling Your Data Chapter 2 cs542 1 Part II Discussion of the Model: Good Design/ Bad Design cs542 2 Design : The Obvious Use meaningful and descriptive s (it s for the human after all) Keep as simple

More information

CSE 530A. ER Model to Relational Schema. Washington University Fall 2013

CSE 530A. ER Model to Relational Schema. Washington University Fall 2013 CSE 530A ER Model to Relational Schema Washington University Fall 2013 Relational Model A relational database consists of a group of relations (a.k.a., tables) A relation (table) is a set of tuples (rows)

More information

1. Consider the following functional dependencies, to be used in the analysis of a database design for the Furman Air enterprise of the first exam:

1. Consider the following functional dependencies, to be used in the analysis of a database design for the Furman Air enterprise of the first exam: CSC-341 Exam #2 October 20, 2009 Name: 1. Consider the following functional dependencies, to be used in the analysis of a database design for the Furman Air enterprise of the first exam: Attributes Pilot

More information

The Entity-Relationship Model (ER Model) - Part 2

The Entity-Relationship Model (ER Model) - Part 2 Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section

More information

Conceptual Design. The Entity-Relationship (ER) Model

Conceptual Design. The Entity-Relationship (ER) Model Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Database Design Overview Conceptual design The Entity-Relationship

More information

Chapter 6: Entity-Relationship Model

Chapter 6: Entity-Relationship Model Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

More information

Content-Based Assessments. Mastering Access. For Project 13L, you will need the following file: a13l_lab_administrators

Content-Based Assessments. Mastering Access. For Project 13L, you will need the following file: a13l_lab_administrators CH13_student_cd.qxd 10/17/08 7:17 AM Page 1 Mastering Access Project 13L Lab Administrators In this project, you will apply the skills you practiced from the Objectives in Project 13A. Objectives: 1. Open

More information

Introduction to Database Systems. The Relational Data Model

Introduction to Database Systems. The Relational Data Model Introduction to Database Systems The Relational Data Model Werner Nutt 1 4. The Relational Data Model 4.1 Schemas 1. Schemas 2. Instances 3. Integrity Constraints 2 Different Schemas are Based on Different

More information

Perceptive AP Invoice Processing Solutions

Perceptive AP Invoice Processing Solutions Perceptive AP Invoice Processing Solutions Readme Version 11.x Written by: Product Documentation, R&D Date: February 10, 2014 2014 Perceptive Software. All rights reserved Perceptive Software is a trademark

More information

Microsoft Power Tools for Data Analysis #7 Power Query 6 Types of Merges/ Joins 9 Examples Notes from Video:

Microsoft Power Tools for Data Analysis #7 Power Query 6 Types of Merges/ Joins 9 Examples Notes from Video: Table of Contents: Microsoft Power Tools for Data Analysis #7 Power Query 6 Types of Merges/ Joins 9 Examples Notes from Video: 1. Power Query Has Six Types of Merges / Joins... 2 2. What is a Merge /

More information

Systems Analysis & Design

Systems Analysis & Design Systems Analysis & Design Dr. Arif Sari Email: arif@arifsari.net Course Website: www.arifsari.net/courses/ Slide 1 Adapted from slides 2005 John Wiley & Sons, Inc. Slide 2 Course Textbook: Systems Analysis

More information

Copyright 2009 Labyrinth Learning Not for Sale or Classroom Use LESSON 1. Designing a Relational Database

Copyright 2009 Labyrinth Learning Not for Sale or Classroom Use LESSON 1. Designing a Relational Database LESSON 1 By now, you should have a good understanding of the basic features of a database. As you move forward in your study of Access, it is important to get a better idea of what makes Access a relational

More information