CSCI-100 Introduction to Computing

Slides:



Advertisements
Similar presentations
Convert ER to Relational Database Entity relation Entity relation Attributes attributes Attributes attributes Primary key primary key Primary key primary.
Advertisements

Extended Learning Module C
Weak Entity Sets An entity set that does not have a primary key is referred to as a weak entity set. The existence of a weak entity set depends on the.
Databases Revision.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
MIS 451 Building Business Intelligence Systems Logical Design (3) – Design Multiple-fact Dimensional Model.
Database – Part 2a Dr. V.T. Raja Oregon State University.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Reduction of an E-R Schema to Tables A database which conforms to an E-R diagram can be represented.
Database Relationships Objective 5.01 Understand database tables used in business.
Entity-Relationship Design
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
ICOM 5016 – Introduction to Database Systems Lecture 9 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
In this session, you will learn to: Map an ER diagram to a table Objectives.
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Relational Theory and Design
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
Order Database – ER Diagram Prepared by Megan Foster Fall Semester 2014.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
* 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.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” MODULE 5 : Part 1 INTRODUCTION TO DATABASE.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
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.
Geographic Information Systems GIS Data Databases.
Entity-Relationship Model
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity-Relationship Model
CITA 215 Section 3 Data Modeling.
Database Management Systems (DBMS)
A Table with a View: Database Queries
Lecture 2 The Relational Model
Database Management  .
Databases A brief introduction….
Entity/Relationship Model
RELATIONAL DATABASE MODEL
Entity-Relationship Model and Diagrams (continued)
Order Database – ER Diagram
Normalization Referential Integrity
Relational Database.
Entity relationship diagrams
5.02 Understand database queries, forms, and reports used in business.
PHP and MySQL.
Databases and Structured Files: What is a database?
Session 2 Welcome: The seventh learning sequence
Primary key Introduction Introduction: A primary key, also called a primary keyword, is a key in a relational database that is unique for each record.
Database Design Hacettepe University
Chengyu Sun California State University, Los Angeles
A Table with a View: Database Queries
DBMS ER-Relational Mapping
Databases 1.
Data Models in DBMS A model is a representation of reality, 'real world' objects and events, associations. Data Model can be defined as an integrated collection.
A Table with a View: Database Queries
Database Dr. Roueida Mohammed.
Geographic Information Systems
Database Design Chapter 7.
Presentation transcript:

CSCI-100 Introduction to Computing Databases Part II

Database Models Define the way a database organizes data Four main models Hierarchical Network Relational Object-oriented

Relational Database Each entity is stored in a separate table Columns represent fields Rows represent records Tables are linked by a relationship between primary and foreign keys

Integrity Constraints Define acceptable values for a field For example, the value of a month cannot be greater than 12 Primary keys cannot be duplicated Foreign keys cannot be used unless they exist as a primary key A SalesID that is used in the customer table must exist as a primary key in the salesperson table

Primary Key Foreign Key A field that uniquely identifies a record SalesID can be a primary key for the SalesPerson table Once a SalesID appears in the table, no other salesperson can have that ID Foreign Key A field in one table that is a primary key in another table SalesID can be used in the Customer table to identify the salesperson who serves that customer The same SalesID can appear in many customer records (a salesperson can serve many customers)

Entity-Relationship (ER) Diagram The logical structure of a database can be expressed graphically by an ER diagram. Such a diagram consists of some major components Rectangles, which represent entities Ellipses, which represent attributes Diamonds, which represent relationships Lines, which link attributes to entities and entities to relationships EXAMPLE: ER diagram for a bank (DONE IN CLASS)

A database that conforms to an ER diagram can be represented by a collection of tables Converting an ER diagram to a table format is the basis for deriving a relational database from and ER diagram design EXAMPLE: Relational database from bank ER diagram (DONE IN CLASS)