Chapter 16 (p481 – 485, 496-501) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.

Slides:



Advertisements
Similar presentations
Chapter 3 : Relational Model
Advertisements

ACCESS PART 2. Objectives Database Tables Table Parts Key Field Query and Reports Import from Excel Link to Excel.
Relations The Relational Data Model John Sieg, UMass Lowell.
CPSC-608 Database Systems Fall 2009 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #2.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Organizing Data Chapter 5. Data Hierachy Table = Entities X Attributes Entities = Records Attributes = Fields.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Attribute databases. GIS Definition Diagram Output Query Results.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes 1.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Relational Model Session 6 Course Name: Database System Year : 2012.
Lecture 3 The Relational DB Model. Learning Objectives That the relational database model takes a logical view of data That the relational model’s basic.
Introduction to Accounting Information Systems
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 15: Using LINQ to Access Data in C# Programs.
Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Chapter 3 The Relational Model. 2 Chapter 3 - Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between.
Chapter 2 Adapted from Silberschatz, et al. CHECK SLIDE 16.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Object Persistence (Data Base) Design Chapter 13.
The Relational Model UC Berkeley Extension Copyright © 2008 Patrick McDermott.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Relational Database. Database Management System (DBMS)
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Database revision.
SE305 Database System Technology 23/10/2014 Quiz-2.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Chapter 2 Introduction to Relational Model. Example of a Relation attributes (or columns) tuples (or rows) Introduction to Relational Model 2.
Chapter 2: Intro to Relational Model. 2.2 Example of a Relation attributes (or columns) tuples (or rows)
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Introduction.
Introduction to Databases CISC Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
* 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.
Jennifer Widom Relational Databases The Relational Model.
Chapter 3: Relational Databases
Howard Paul. Sequential Access Index Files and Data File Random Access.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Chapter 4, Part A: Logical Database Design and the Relational Model
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
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.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Databases Chapter 16.
Chapter 2: Relational Model
Week 02 - Introduction to Data Modelling
Chapter 12 Information Systems.
Information Systems Database Management
Databases and Information Management
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Order Database – ER Diagram
Database Fundamentals
Database.
Relational Databases The Relational Model.
Relational Databases The Relational Model.
What is a Database? A collection of data organized in a manner that allows access, retrieval, and use of that data.
Databases and Information Management
Chengyu Sun California State University, Los Angeles
DATABASE Purpose of database
Microsoft Access Date.
Presentation transcript:

Chapter 16 (p481 – 485, ) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1

Database Defined  database – an organized collection of related information, used primarily to maintain and look up that information.  relational database -the most common type of database Data is organized into tables that have rows and columns. Thus, a database is a collection of one or more tables 2

Part of a Database Table called Nations 3 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Czech Rep.CZPrague51N15EPilsner DenmarkDKCopenhagen55N12EHistory Falkland IS.FKStanley51S58WNature FinlandFIHelsinki64N26ENature GreenlandGLNuuk72N40WNature IcelandISReykjavik65N18WGeysers IrelandIEDublin52N7WHistory

13 Rows, Tuples, Records 4 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Czech Rep.CZPrague51N15EPilsner DenmarkDKCopenhagen55N12EHistory Falkland IS.FKStanley51S58WNature FinlandFIHelsinki64N26ENature GreenlandGLNuuk72N40WNature IcelandISReykjavik65N18WGeysers IrelandIEDublin52N7WHistory

8 Columns, Fields, Attributes 5 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Czech Rep.CZPrague51N15EPilsner DenmarkDKCopenhagen55N12EHistory Falkland IS.FKStanley51S58WNature FinlandFIHelsinki64N26ENature GreenlandGLNuuk72N40WNature IcelandISReykjavik65N18WGeysers IrelandIEDublin52N7WHistory

Properties of Database Tables A relational database table can be empty. Two tables with the same rows, but in a different order, are the same table. Two tables with the same columns, but in a different order, are the same table. Thus the information in a database can be ordered (i.e. sorted) in any order that you need. 6

Properties of Database Tables: An Empty table 7 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest

Properties of Database Tables: Two views of the same table 8 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest BelizeBZBelize17N18WBeach BarbadosBBBridgetown13N59WBeach AustraliaAUCanberra37S148EBeach BermudaBMHamilton32N64WBeach BahamasBSNassau25N78WBeach CyprusCYNicosia35N32EHistory

Properties of Database Tables Every row of a database table must be unique in some way. The field (i.e. column or attribute) for which all rows of the data base table are unique is the primary key of the table. 9

A Database Table called Nations 10 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Czech Rep.CZPrague51N15EPilsner DenmarkDKCopenhagen55N12EHistory Falkland IS.FKStanley51S58WNature FinlandFIHelsinki64N26ENature GreenlandGLNuuk72N40WNature IcelandISReykjavik65N18WGeysers IrelandIEDublin52N7WHistory

Properties of Database Tables Field names (i.e. column names, attribute names) should be descriptive. Attribute data (i.e. column data, field data) is atomic – Or Indivisible – The value of a field (i.e. column, attribute) can not be subdivided into several smaller parts – The date attribute is a classic exception 11

A Database Table called Nations 12 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Czech Rep.CZPrague51N15EPilsner DenmarkDKCopenhagen55N12EHistory Falkland IS.FKStanley51S58WNature FinlandFIHelsinki64N26ENature GreenlandGLNuuk72N40WNature IcelandISReykjavik65N18WGeysers IrelandIEDublin52N7WHistory

Database Scheme Also called database schema It is the collection of all table definitions for a database. Each table definition includes – Table name – Fields with data types – Primary key indicated 13

A Table Definition for Nations Table Name: Nations Fields: (with data type and primary key indicated) Name (Text) Domain (Text) Capital (Text) Latitude (Text) N_S (Number) Longitude (Text) E_W (Number) Interest (Text) 14

Physical Database The physical database It is made up of all of the physical tables. Major rule: No Redundancy! 15

Nations is a Physical Table 16 Nations NameDomainCapitalLatitudeN_SLongitudeE_WInterest AustraliaAUCanberra37S148EBeach BahamasBSNassau25N78WBeach BarbadosBBBridgetown13N59WBeach BelizeBZBelize17N18WBeach BermudaBMHamilton32N64WBeach CyprusCYNicosia35N32EHistory Czech Rep.CZPrague51N15EPilsner DenmarkDKCopenhagen55N12EHistory Falkland IS.FKStanley51S58WNature FinlandFIHelsinki64N26ENature GreenlandGLNuuk72N40WNature IcelandISReykjavik65N18WGeysers IrelandIEDublin52N7WHistory

Logical Database and Queries It is made up of all of the logical tables. A logical table is created as the result of a query. A query is an operation on one or more database tables that pulls info from the database. For complex queries, go beyond "drag and drop" with Structured Query Language (SQL) 17

Query 1 us a Logical Table 18 Query1 NameDomain BahamasBS BarbadosBB BelizeBZ BermudaBM Created by a Query on the Nations Table

Creating Queries (i.e. logical tables) Steps to create each query… 1.Select the table or tables with the needed data 2.Select the fields you wish to see 3.Set the criteria for which rows you want 4.Sort as prescribed 19

Entity Relationship diagrams Also called ER diagrams Show the relationships between the physical tables in the physical database. 20

ER Diagram 21

ER Diagram: ∞ to 1 Table: Movies Fields: Movie ID Director ID Title Release Year Directed by Table: Directors Fields: Director ID Last Name First Name Birth Year 22