Chapter 14 Getting to First Base: Introduction to Database Concepts.

Slides:



Advertisements
Similar presentations
Chapter 15 A Table with a View: Database Queries.
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advanced Data Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Fundamentals, Design, and Implementation, 9/e Chapter 4 The Relational Model and Normalization.
Chapter 2 Application Layer. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. 2-2.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Chapter 6 Human Capital. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. 6-2.
Learning Objectives Explain the differences between everyday tables and database tables Use XML to describe the metadata for a table of information,
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 16 Resources and the Environment at the Global Level.
Chapter 3 Describing Syntax and Semantics. Copyright © 2007 Addison-Wesley. All rights reserved 3–2.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Use XML.
Chapter 3 The Relational Model and Normalization
Chapter 3: Modeling Data in the Organization
Concepts of Database Management, Fifth Edition
Chapter 4 The Relational Model Pearson Education © 2014.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
SQL Normalization Database Design Lecture 5. Copyright 2006Page 2 SQL Normalization Database Design 1 st Normal Form 1 st Normal Form 2 nd Normal Form.
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
Introduction to Accounting Information Systems
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
Chapter 16 HAI! Adventure Database: Case Study in Database Design.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
The Relational Database Model
Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Use XML.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
Chapter 15 Introduction to Database Concepts. Learning Objectives Explain the differences between everyday tables and database tables Use XML to describe.
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 3 The Relational Database Model.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 3 The Relational Database Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
Databases Databases are collections of information; our study repeats a theme: Tell the computer the structure, and it can help you! © 2004, Lawrence Snyder.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Chapter 4 The Relational Model Pearson Education © 2009.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Lecture 16 Introduction to Database Concepts. Differences Between Tables and Databases Database: table of info –iTunes –Automobile registrations –Demography.
Databases Chapter 16.
Chapter 2: Relational Model
A Table with a View: Database Queries
Lecture 2 The Relational Model
Chapter 4 Relational Databases
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Announcements Project 2’s due date is moved to Tuesday 8/3/04
Databases and Information Management
DATABASE SYSTEM.
Getting to First Base: Introduction to Database Concepts
A Table with a View: Database Queries
Getting to First Base: Introduction to Database Concepts
Getting to First Base: Introduction to Database Concepts
Chapter 4 The Relational Model and Normalization
A Table with a View: Database Queries
Database Systems: Design, Implementation, and Management
Presentation transcript:

Chapter 14 Getting to First Base: Introduction to Database Concepts

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Tables: Special Kinds Of Lists A database (DB) stores data A relational database stores data in tables and describes the relationships among the different kinds of data Databaspecifys are like the lists in spreadsheets, but with added constraints –Constraints limit the kinds of data they can contain, but expand the operations they can perform

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Entities Anything that can de identified by a fixed number of its characteristics (attributes) –Attributes have names and values –The values are the data that's stored in the table To create a table, we specify the entity's name (table name), the names of the entity's attributes, and the kinds of values each attribute can have

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Properties of Entities Table Instances: –Table is initially empty. It has a name and column headings (the attribute names) but no rows –Each row will represent an entity –An instance of the database table is the table with a specific set of rows

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Properties Of Entities (Cont'd) Structure: Content and Metadata –We separate the structure of the information from the information itself –A table's metadata includes its name, its attributes' names, the types of values each attribute can have, and the primary key, at a minimum –Some properties are not metadata: order of rows and columns is unimportant

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 14-6

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 14-7

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Properties Of Entities (cont'd) Entities and Uniqueness –A database table doesn't have any duplicate rows –There must be at least one distinguishing characteristic to each entity –Some characteristics may be the same, but not all

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Properties Of Entities (cont'd) Keys –Any set of attributes for which all attributes are different is a candidate key –Pick one and call it the primary key –Key must distinguish all potential and actual entities, not just those that happen to be in the table at a given times –If no combination of attributes qualify as a candidate key, assign a unique ID to each entity Like a student ID number issued by school

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Operations on Tables Main use of database is to look up information –Users specify what they want to know, and the database finds it Five fundamental operations that can be performed on tables: Select, Project, Union, Difference, Product

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Operations (cont'd) Select Operation –Takes rows from one table to create a new table Specify the table from which rows are to be taken, and the test for selection Syntax: Select Test From Table Test is applied to each rows of the table to determine if it should be included in result table Test uses attribute names, constants and relational operators If the test is true for a given row, the row is included in the result table; otherwise it is ignored

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Operations (cont'd) Project Operation –Builds a new table from the columns of an existing table –Specify name of exiting table (or tables) and the columns (field names) to be included in the new table –Syntax: Project Field_List From Table –The new table will have the number of columns specified, and the same number of rows as the original table, unless The new table eliminates a key field. If rows duplicate in the new table, duplicates will be eliminated

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Operations (cont'd) Union Operation –Combines two tables (that have the same attributes) –Syntax: Table1 + Table2 Difference Operation –Remove from one table the rows also listed in a second table –Syntax: Table1 - Table2 Product Operation –Creates a super table with all fields from both tables –Puts the rows together –Syntax: Table1 Table2

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Join Operation Combines two tables, like the Product Operation, but doesn't necessarily produce all pairings –If the two tables each have fields with a common data type, new table combines only the rows from the given tables that match on the fields –Syntax: Table1 Table2 On Match

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Join Operation (cont'd) Match is a comparison test involving a field from each table If the same field in table 1 contains the same data in the row for that field

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved

Copyright © 2006 Pearson Addison-Wesley. All rights reserved