Introduction to Geographic Information Science. Updates. Last Lecture. Geography 4103 / Database Management

Size: px
Start display at page:

Download "Introduction to Geographic Information Science. Updates. Last Lecture. Geography 4103 / Database Management"

Transcription

1 Geography 4103 / 5103 Introduction to Geographic Information Science Database Management Updates Last Lecture We tried to explore the term spatial model by looking at definitions, taxonomies and examples An understanding of the methods we use (analysis tools), appropriate data models and of the problem we face (modeling) are central Deriving meaningful representations of events, occurrences or processes by making use of the power of spatial analysis Modelbuilder: How do you like it? 1

2 Today s Outline We will look into Database Management Systems (DBMS) Exploring what Databases and their elements are and what DBMS means Types of DBMS How attribute data & feature info is managed and stored Operations on relational DBMS (Relational Operators) to manipulate and query/select data Spatial data Learning Objectives Database Management Systems (DBMS) Databases and their elements Types of DBMS Relational Operators to manipulate and query/select data Spatial data Databases and DBMS It s all about our data (attribute information & feature information ) A database is a collection of data files that is structured (organized). A database management system (DBMS) is a specialized computer program used to organize & manipulate (manage) the database (data storage, editing, and retrieval). Oracle, Access, Postgres 2

3 DBMS & GIS - Often huge tables - Require maintenance (change, add, delete) to store data properties and their relationships - Must serve different people/applications for queries - Protection from corrupting/deleting & access restrictions - Geodatabases as a more complex type Logical vs. Physical Structures Logical structure = database design (schema) Logical specification of attributes and relationships Conceptual model of items, mappings, cardinality Entity- relation diagram / notation (UML) Physical structure = database implementation Many possible implementations of any schema Depends on intended db use requirements Speed access, frequent update Flexible relationships Protect data security Logical Structure (Schema) Bolstad s (2005) forest trails database Entity sets hold attributes* Relationships hold mappings Use these for joining tables Cardinality (1-N, M-N) defines nature and direction of the relationship Review joins-and-relates Recreation Activity Entity sets hold features, too M Features 3

4 cardinality cardinality Attention: 1:M and M:N Use relate instead of join cardinality If join: only first element in shp files gdb: relationships for all mappings M:1 Landuse features (M) & descriptions (1) Spatial Joins Physical Structures/ Database Models particular way of conceptually organizing multiple data files in a database (implementation) Flat File: text files Hierarchical: parent-child Network: nodes & links Relational: tables related via keys Hybrid/ Object-oriented Hierarchical and network database models have generally been replaced by the relational data model. Flat File Data in a text formatted file (row/column format). Initial stage format Advantages: Transparent, easily transportable Disadvantages: Little structure, few error safeguards, no ability to cross-reference or link among entries 4

5 Hierarchical DBMS Root entity & tree (e.g. ArcCatalog, Windows Explorer) and parentchildren relationships Simple, hard to capture complex relationships, slow searches Redundancies exist (updates!) - duplicates forests trails features redundant Network DBMS Eliminate redundancy - permit multiple parents for each child forests trails features Disadvantages: difficult to implement difficult to update difficult to validate activity Advantages: fast search flexible relationships no duplicates Hierarchic and Network DBMS In Practice Redundant items Not an error (no way to avoid) No redundant nodes, but errors in relations point 4 not part of edge f point 5 should be part 5

6 Physical Structures/ Database Models particular way of conceptually organizing multiple data files in a database Flat File: text files Hierarchical: parent-child Network: nodes & links Relational: tables related via keys Hybrid/ Object-oriented Hierarchical and network database models have generally been replaced by the relational data model. Relational DBMS Introduced by E.F. Codd (1968) Mathematician at IBM, same time as Mandelbrot Most frequently encountered DBMS in GIS Flexible Wide range of data types Simple to implement, modify and understand Bernhardsen: simple table structure permitted development of SQL Sometimes retrieval is slow (so optimize tables) Use fewer columns, fewer joins Use relationship classes instead of joins Table: Data organized in rows and columns Record (rows/tuples): a set of tuples represents logical entities (e.g. road, lake, land use polygon) Field (column/item): The attribute (property) of the logical entity Index/key: Attribute(s) used to identify, organize, or order records in a database (needed for relational algebra or joins; see below) Record (or tuple) Terminology Field (or attribute/item) ID AREA Perim Class Code a 11z a 119f integer domain real domain (float/double) alphanumeric domain (a string) 6

7 Original Flat Files Minimal structure Field types/domains specified (possible values) Advantages: Minimum structure, easy programming, flexible Disadvantages: Can be slow due to lack of structure Relational Database Relational Keys Any unique field can be a key. Keys can span multiple columns What is unique? Forests: forest-id or forest_name Recreational features: feature or description 7

8 Primary and Foreign Keys Primary key index to a table Foreign key index contained in the table that is possibly nonunique, but which serves as primary key in another table (can be used for Joins) Why join these tables? What could it tell you? Primary Key Foreign Key Every table must have a primary key (what is primary key for Trails table?) Primary Key Relational Database Joining Tables Rule: each row holds a unique combination of values, before and after join Ideally, isolate key in as few fields as possible db is simpler, smaller disk volume, faster query This is partly why ArcGIS uses a # field forces primary key into a single column, in absence of other keys Relational Database Result of the Join What is the primary key in the Joined Table? What foreign keys do you see in Joined Table? 8

9 Which fields can be primary keys? What is the primary key for this table? Sometimes we need multiple fields to form a key e.g. Parcel-ID and Own-ID Relational Join (1:n) Resulting Joined table: 9

10 Sorting ordering by attribute values Simple sort ascending AREA Name AREA class Type Emily, Lake 52, Limnetic zone Emily, Lake 58, Limnetic zone 60, Shallow lakes 64, Shallow lakes 70, Shallow lakes Long Lake 88, Limnetic zone 143, Littoral zone Sleepy Eye Lake 170, Littoral zone Mud Lake 193, Shallow lakes Goldsmith Lake 201, Littoral zone Emily, Lake 336, Littoral zone 349, Limnetic zone 384, Littoral zone Emily, Lake 420, Limnetic zone Savidge Lake 479, Littoral zone Emily, Lake 545, Limnetic zone Dog Lake 635, Littoral zone Duck Lake 1,126, Limnetic zone Wita Lake 1,354, Littoral zone 1,418, Limnetic zone Ballantyne Lake 1,428, Limnetic zone Washington, Lake 1,914, Limnetic zone Limnetic zone Compound sort ascending Type, then descending AREA within Type Name AREA class Type 4,040, Limnetic zone 1,937, Limnetic zone Washington, 1,914, Limnetic zone Lake Ballantyne Lake 1,428, Limnetic zone 1,418, Limnetic zone Duck Lake 1,126, Limnetic zone Emily, Lake 545, Limnetic zone Emily, Lake 420, Limnetic zone 349, Limnetic zone Long Lake 88, Limnetic zone Emily, Lake 58, Limnetic zone Emily, Lake 52, Limnetic zone Dog Lake 635, Littoral zone Wita Lake 1,354, Littoral zone Savidge Lake 479, Littoral zone 384, Littoral zone Emily, Lake 336, Littoral zone Goldsmith Lake 201, Littoral zone Sleepy Eye Lake 170, Littoral zone 143, Littoral zone Mud Lake 193, Shallow lakes 70, Shallow lakes Shallow lakes Constraints on relational implementation Rules for implementing tables appear to be fast and loose. In fact, two kinds of constraints allow flexibility yet preserve logical consistency. Constraint 1 limit the number of legal operations on relational tables (Relational Algebra) Constraint 2 Balance the amount of redundancy (Normal Forms) Constraint 1 limit # operations Codd s relational algebra (only 8 operations) Combine or split tables Select rows or columns Expand tables (add rows or columns) Everything you do in Arc that geoprocesses tables is accomplished by these 8 operations. 10

11 The Eight Operators (after Bolstad, 2005) Select (rows) by attribute Select specific column(s) Select size >= big Simple or compound restricts (using logical operators AND, OR, NOT) Recall comment about fewer columns makes a simpler db; better speed, smaller disk volume (vertical subsetting) Show SQL The Eight Operators (after Bolstad, 2005) Combine all possible unique rows in two tables Combines all unique rows of one table with all unique rows of another table (crosstabulating) Often used in queries with All based on a condition Find all types (m,n,r) associated with size = 1 and size =2 in 3 rd table Returns list of types Find structure types that are located in 2 different Hazard zones (1 and 2) out of a table that summarizes all relationships The Eight Operators (after Bolstad, 2005) Combine tables to return records found in one or both Combine tables to return records found in both No duplicates; same set of attributes in input tables same set of attributes in input tables 11

12 The Eight Operators (after Bolstad, 2005) Return rows in first but not second table order matters! Similar to Erase Match candidate keys to expand attributes Sequential joins are possible What is the join field above? Summary We tried to explore Database Management Systems (DBMS) Databases for organizing and manipulating data Relational databases are most common Attribute data is managed and stored and tables can be linked based on keys Operations on relational DBMS (Relational Operators) are very important concepts for DBMS Spatial data are special cases and often special structures are required to manage them Constraints on relational implementation Rules for implementing tables appear to be fast and loose. In fact, two kinds of constraints allow flexibility yet preserve logical consistency. Constraint 1 limit the number of legal operations on relational tables (Relational Algebra) Constraint 2 Balance the amount of redundancy (Normal Forms) 12

13 Pitfalls of Relational Tables Relational tables have many advantages, but if improperly structured, they may suffer from: - Poor performance - Inconsistency - Redundancy - Difficult maintenance This occurs when concepts of Normal Forms in relational tables are violated. Constraint 2 limit redundancy (do this with indexing keys & dependencies) Dependencies needed to make relational DBMS work. Dependency means that one column predetermines another. Dependency Redundancy (they complement and balance each other) Too much bulky database, slower performance Not enough can t find all the info in the table easily, and difficult to join when added information needed Simple (Functional) Dependency Dfn: knowing one field in a row determines what the value in another field would be. Example: Student Database Knowing a Buff One number determines student name Knowing name determines major (even Undeclared) Knowing major determines College (A&S, ENG) Functional dependencies are good (they re simple) Transitive dependencies are bad Transitive: sequence of simple dependencies in one table. Bad because too much redundancy creates complex primary and foreign indexing keys (again, bulky, slow, and possibly contradictory) 13

14 How to resolve Constraint #2? Normalization insures indexing keys provide just the right amount of dependency in single table. Just the right amount means that edits can be made in just one table and propagated through the rest of the DBMS using table relationships (and joins). And database edits cannot easily corrupt the data (goal is to free the database of modification anomalies). How to resolve Constraint #2? Normalize in stages, called Normal Forms Each form inserts or eliminates dependencies Codd proposed six in a sequence three added later First three needed for GIS When all three are in place, relational database contains only simple dependences A normalized database is suitable for general purpose queries, meaning special cases in the database should not require different query formulation than general cases. Normal Forms 1 st normal form: Atomic columns and cell values every cell contains only one attribute value, and no repeat columns appear in any single table 2 nd normal form: establish simple dependencies attributes that do not make up the primary key are functionally dependent only on the primary key Split tables to remove duplicate rows 3 rd normal form: eliminate transitive dependencies Split tables to remove dependent rows and columns Six additional normal forms can be established, but GIS uses only these three 14

15 Establish 1 st Normal Form BuffOne Student Name Major Dept College Sally Jones Interface Dsn CSI ENG Bob Willis Policy, Human Geog ENVS, GEOG A&S Phys Geog, GEOG, Kathy Dunn Policy ENVS A&S Hal Smith GIS GEOG A&S Carl Tomlin Analysis, GIS ENVS, GEOG A&S Problem? Cells can have only one value (thus queries need to recognize and isolate one major from list of possibly multiple majors queries become more difficult than they need to be) Establish 1 st Normal Form 1st Normal Form? Not yet! No cell contains more than one value, and now primary key is BuffOne or Student Name; BUT multiple columns persist BuffOne Student Name Major Dept College Major Dept College Sally Jones Interface Dsn CSI ENG Bob Willis Policy ENVS A&S Human Geog GEOG A&S Kathy Dunn Phys Geog GEOG A&S Policy ENVS A&S Hal Smith GIS GEOG A&S Carl Tomlin Analysis ENVS A&S GIS GEOG A&S Establish 1 st Normal Form Done! Every cell has only one value, and no duplicate columns. BuffOne Student Name Major Dept College Sally Jones Interface Dsn CSI ENG Bob Willis Policy ENVS A&S Kathy Dunn Phys Geog GEOG A&S Hal Smith GIS GEOG A&S Carl Tomlin Analysis ENVS A&S Bob Willis Human Geog GEOG A&S Kathy Dunn Policy ENVS A&S Carl Tomlin GIS GEOG A&S But what is primary key now? (note Bob Willis, Kathy Dunn Carl Tomlin have double majors) 15

16 Establish 2nd Normal Form 2nd Normal Form Remove duplicate rows to establish primary keys for simple dependencies; every non-key field depends only on the primary key. Students Majors BuffOne Student Name Major1 ID Major 2 ID Sally Jones Null Bob Willis Kathy Dunn Hal Smith Null Carl Tomlin Major ID Major Dept ID Dept College Interface Design 134 CSI ENG Policy 378 ENVS A&S Analysis 378 ENVS A&S Phys Geog 260 GEOG A&S Human Geog 260 GEOG A&S GIS 260 GEOG A&S Done! Establish 3 rd Normal Form 3 rd Normal Form -- Eliminate transitive dependencies Major ID Dept ID and Dept ID College BuffOne Student Name Major1 ID Major 2 ID Students Sally Jones Null Bob Willis Kathy Dunn Hal Smith Null Carl Tomlin Major ID Major Dept ID Departments Interface Design 134 Dept ID Dept College Policy CSI ENG Analysis ENVS A&S Phys Geog GEOG A&S Human Geog GIS 260 Majors Done! In 3 rd Normal Form Tables have distinct sets of rows and columns Primary keys are unique identifiers within tables, and in each table, they span as few columns as possible. Items appearing in multiple tables keep same ID throughout All dependencies are simple; no transitive dependencies exist in any single table 16

17 Hybrid DBMS In GIS often hybrid database designs are used Coordinate data in specialized structures (fast retrieval) *object-related grouping, *indexing, listing as well as *pointers to link between geographic features and attributes Topology explicitly stored in an indexing table (using lists and pointers to keep information about adjacency, ) Attribute data in relational databases Attributes and features stored in same type DBMS Relational Arc Geodatabase Integrated DBMS Item b) is the Management Base; c) is Data Base Where is the Analytic Base? Geodatabases stored in Integrated DBMS Object-Oriented DBMS Items are objects, encapsulate data in frames Classes have properties = behaviors = methods Subclasses inherit properties Objects pass messages E.g. GIS SmallWorld, ArcObjects (learn a bit about this in GIS 2) Has evolved into agent-based modeling, dynamic modeling and mobility tracking) 17

Homework 2; Down load instructions and data from Web Can load.dbf in to ArcMap and use Select by Attributes

Homework 2; Down load instructions and data from Web Can load.dbf in to ArcMap and use Select by Attributes Homework 2; Down load instructions and data from Web Can load.dbf in to ArcMap and use Select by Attributes Submit via Moodle using HomeWork2 Answer Sheet Quiz Homework on Website Homework 2; Down load

More information

For each layer there is typically a one- to- one relationship between geographic features (point, line, or polygon) and records in a table

For each layer there is typically a one- to- one relationship between geographic features (point, line, or polygon) and records in a table For each layer there is typically a one- to- one relationship between geographic features (point, line, or polygon) and records in a table Common components of a database: Attribute (or item or field)

More information

Lecture 8. Database Management and Queries

Lecture 8. Database Management and Queries Lecture 8 Database Management and Queries Lecture 8: Outline I. Database Components II. Database Structures A. Conceptual, Logical, and Physical Components III. Non-Relational Databases A. Flat File B.

More information

8) A top-to-bottom relationship among the items in a database is established by a

8) A top-to-bottom relationship among the items in a database is established by a MULTIPLE CHOICE QUESTIONS IN DBMS (unit-1 to unit-4) 1) ER model is used in phase a) conceptual database b) schema refinement c) physical refinement d) applications and security 2) The ER model is relevant

More information

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1 Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished

More information

Data, Databases, and DBMSs

Data, Databases, and DBMSs Todd S. Bacastow January 2004 IST 210 Data, Databases, and DBMSs 1 Evolution Ways of storing data Files ancient times (1960) Databases Hierarchical (1970) Network (1970) Relational (1980) Object (1990)

More information

LSGI 521: Principles of GIS. Lecture 5: Spatial Data Management in GIS. Dr. Bo Wu

LSGI 521: Principles of GIS. Lecture 5: Spatial Data Management in GIS. Dr. Bo Wu Lecture 5: Spatial Data Management in GIS Dr. Bo Wu lsbowu@polyu.edu.hk Department of Land Surveying & Geo-Informatics The Hong Kong Polytechnic University Contents 1. Learning outcomes 2. From files to

More information

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure Databases databases Terminology of relational model Properties of database relations. Relational Keys. Meaning of entity integrity and referential integrity. Purpose and advantages of views. The relational

More information

ENGRG 59910: Introduction to GIS

ENGRG 59910: Introduction to GIS ENGRG 59910: Introduction to GIS Lecture 05: GIS and Databases Basics Acknowledgment: Michael Piasecki Where are we now? Basic geographic concepts Introduction to GIS, coordinate system, projection, datum

More information

presented by: Tim Haithcoat University of Missouri Columbia

presented by: Tim Haithcoat University of Missouri Columbia 12 presented by: Tim Haithcoat University of Missouri Columbia Introduction Very early attempts to build GIS began from scratch, using limited tools like operating systems & compilers More recently, GIS

More information

THE RELATIONAL DATABASE MODEL

THE RELATIONAL DATABASE MODEL THE RELATIONAL DATABASE MODEL Introduction to relational DB Basic Objects of relational model Properties of relation Representation of ER model to relation Keys Relational Integrity Rules Functional Dependencies

More information

Data Models and SQL for GIS. John Porter Department of Environmental Sciences University of Virginia

Data Models and SQL for GIS. John Porter Department of Environmental Sciences University of Virginia Data Models and SQL for GIS John Porter Department of Environmental Sciences University of Virginia Why Talk about Databases in a GIS Class? The goal of GIS is to analyze and display spatial data Vector

More information

Review for Exam 1 CS474 (Norton)

Review for Exam 1 CS474 (Norton) Review for Exam 1 CS474 (Norton) What is a Database? Properties of a database Stores data to derive information Data in a database is, in general: Integrated Shared Persistent Uses of Databases The Integrated

More information

Chapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations

Chapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations Chapter 3B Objectives Relational Set Operators Learn About relational database operators SELECT & DIFFERENCE PROJECT & JOIN UNION PRODUCT INTERSECT DIVIDE The Database Meta Objects the data dictionary

More information

Chapter 4. The Relational Model

Chapter 4. The Relational Model Chapter 4 The Relational Model Chapter 4 - Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations and relations in the relational model.

More information

ENGRG Introduction to GIS

ENGRG Introduction to GIS ENGRG 59910 Introduction to GIS Michael Piasecki October 06, 2017 Lecture 05: GIS and Database Basics Where are we now? Basic geographic concepts Introduction to GIS, coordinate system, projection, datum

More information

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan Relational Model DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Management Information Systems (MIS) Relational Model Relational Data

More information

U1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System

U1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System Data Base Management System (DBMS) Unit -1 New Delhi-63,By Vaibhav Singhal, Asst. Professor U2.1 1 Data Base Management System Data: Data is the basic raw,fact and figures Ex: a name, a digit, a picture

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

Normalization in DBMS

Normalization in DBMS Unit 4: Normalization 4.1. Need of Normalization (Consequences of Bad Design-Insert, Update & Delete Anomalies) 4.2. Normalization 4.2.1. First Normal Form 4.2.2. Second Normal Form 4.2.3. Third Normal

More information

ENGRG Introduction to GIS

ENGRG Introduction to GIS ENGRG 59910 Introduction to GIS Michael Piasecki October 5, 2014 Lecture 05: GIS and Databases Basics Where are we now? Basic geographic concepts Introduction to GIS, coordinate system, projection, datum

More information

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601 Techno India Batanagar Computer Science and Engineering Model Questions Subject Name: Database Management System Subject Code: CS 601 Multiple Choice Type Questions 1. Data structure or the data stored

More information

Kathleen Durant PhD Northeastern University CS Indexes

Kathleen Durant PhD Northeastern University CS Indexes Kathleen Durant PhD Northeastern University CS 3200 Indexes Outline for the day Index definition Types of indexes B+ trees ISAM Hash index Choosing indexed fields Indexes in InnoDB 2 Indexes A typical

More information

Layers. External Level Conceptual Level Internal Level

Layers. External Level Conceptual Level Internal Level Layers External Level Conceptual Level Internal Level Objective of 3 Layer Arch. Separate each user s view of database from the way database is physically represented. Each user should be able to access

More information

Basant Group of Institution

Basant Group of Institution Basant Group of Institution Visual Basic 6.0 Objective Question Q.1 In the relational modes, cardinality is termed as: (A) Number of tuples. (B) Number of attributes. (C) Number of tables. (D) Number of

More information

Databases. Dr. Richard E. Turner March 5, 2013

Databases. Dr. Richard E. Turner March 5, 2013 Databases Dr. Richard E. Turner (ret26@cam.ac.uk) March 5, 2013 Big-data: Databases Database = structured collection of data Everywhere: Facebook, MySpace, Google, Android (sqlite3), Amazon,... Amazon

More information

Mahathma Gandhi University

Mahathma Gandhi University Mahathma Gandhi University BSc Computer science III Semester BCS 303 OBJECTIVE TYPE QUESTIONS Choose the correct or best alternative in the following: Q.1 In the relational modes, cardinality is termed

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Chapter 2: Intro. To the Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Database Management System (DBMS) DBMS is Collection of

More information

Data about data is database Select correct option: True False Partially True None of the Above

Data about data is database Select correct option: True False Partially True None of the Above Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another

More information

Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science

Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science 1 Distributed Database Systems Basic concepts and Definitions Data Collection of facts and figures concerning an object

More information

CS317 File and Database Systems

CS317 File and Database Systems CS317 File and Database Systems Lecture 3 Relational Model & Languages Part-1 September 7, 2018 Sam Siewert More Embedded Systems Summer - Analog, Digital, Firmware, Software Reasons to Consider Catch

More information

Chapter 11 Database Concepts

Chapter 11 Database Concepts Chapter 11 Database Concepts INTRODUCTION Database is collection of interrelated data and database system is basically a computer based record keeping system. It contains the information about one particular

More information

File Processing Approaches

File Processing Approaches Relational Database Basics Review Overview Database approach Database system Relational model File Processing Approaches Based on file systems Data are recorded in various types of files organized in folders

More information

II. Data Models. Importance of Data Models. Entity Set (and its attributes) Data Modeling and Data Models. Data Model Basic Building Blocks

II. Data Models. Importance of Data Models. Entity Set (and its attributes) Data Modeling and Data Models. Data Model Basic Building Blocks Data Modeling and Data Models II. Data Models Model: Abstraction of a real-world object or event Data modeling: Iterative and progressive process of creating a specific data model for a specific problem

More information

Lesson 12: ArcGIS Server Capabilities

Lesson 12: ArcGIS Server Capabilities GEOG 482 / 582 : GIS Data Management Lesson 12: ArcGIS Server Capabilities Overview Learning Objective Questions: 1. What are the ArcGIS Server Services? 2. How is ArcGIS Server packaged? 3. What are three

More information

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization CSE 544 Principles of Database Management Systems Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization References R&G Book. Chapter 19: Schema refinement and normal forms Also relevant to this

More information

Solved MCQ on fundamental of DBMS. Set-1

Solved MCQ on fundamental of DBMS. Set-1 Solved MCQ on fundamental of DBMS Set-1 1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relationship D. Records 2) Field

More information

Why use an RDBMS? ❽ Data maintenance ❽ Standardized access ❽ Multi-user access ❽ Data protection

Why use an RDBMS? ❽ Data maintenance ❽ Standardized access ❽ Multi-user access ❽ Data protection 1 Why use an RDBMS? ❽ Data maintenance ❽ Standardized access ❽ Multi-user access ❽ Data protection 2 RDBMSs offer Data protection ❽ Recovery ❽ Concurrency ❽ Security 3 Data protection ❽ Recovery from ❽

More information

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization CSE 544 Principles of Database Management Systems Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization References R&G Book. Chapter 19: Schema refinement and normal forms Also relevant to

More information

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, normal forms. University of Edinburgh - January 25 th, 2016

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, normal forms. University of Edinburgh - January 25 th, 2016 Applied Databases Lecture 5 ER Model, normal forms Sebastian Maneth University of Edinburgh - January 25 th, 2016 Outline 2 1. Entity Relationship Model 2. Normal Forms Keys and Superkeys 3 Superkey =

More information

Key Terms. Attribute join Target table Join table Spatial join

Key Terms. Attribute join Target table Join table Spatial join Key Terms Attribute join Target table Join table Spatial join Lect 10A Building Geodatabase Create a new file geodatabase Map x,y data Convert shape files to geodatabase feature classes Spatial Data Formats

More information

Data Modeling. Yanlei Diao UMass Amherst. Slides Courtesy of R. Ramakrishnan and J. Gehrke

Data Modeling. Yanlei Diao UMass Amherst. Slides Courtesy of R. Ramakrishnan and J. Gehrke Data Modeling Yanlei Diao UMass Amherst Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Outline v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational 2 Conceptual

More information

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction CS425 Fall 2016 Boris Glavic Chapter 1: Introduction Modified from: Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Textbook: Chapter 1 1.2 Database Management System (DBMS)

More information

CHAPTER 2: DATA MODELS

CHAPTER 2: DATA MODELS Database Systems Design Implementation and Management 12th Edition Coronel TEST BANK Full download at: https://testbankreal.com/download/database-systems-design-implementation-andmanagement-12th-edition-coronel-test-bank/

More information

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database? DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS Complete book short Answer Question.. QUESTION 1: What is database? A database is a logically coherent collection of data with some inherent meaning, representing

More information

Database Applications (15-415)

Database Applications (15-415) Database Applications (15-415) The Relational Model Lecture 3, January 18, 2015 Mohammad Hammoud Today Last Session: The entity relationship (ER) model Today s Session: ER model (Cont d): conceptual design

More information

Chapter 3: The Relational Database Model

Chapter 3: The Relational Database Model Chapter 3: The Relational Database Model Student: 1. The practical significance of taking the logical view of a database is that it serves as a reminder of the simple file concept of data storage. 2. You

More information

CPS510 Database System Design Primitive SYSTEM STRUCTURE

CPS510 Database System Design Primitive SYSTEM STRUCTURE CPS510 Database System Design Primitive SYSTEM STRUCTURE Naïve Users Application Programmers Sophisticated Users Database Administrator DBA Users Application Interfaces Application Programs Query Data

More information

Relational Model History. COSC 416 NoSQL Databases. Relational Model (Review) Relation Example. Relational Model Definitions. Relational Integrity

Relational Model History. COSC 416 NoSQL Databases. Relational Model (Review) Relation Example. Relational Model Definitions. Relational Integrity COSC 416 NoSQL Databases Relational Model (Review) Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Relational Model History The relational model was proposed by E. F. Codd

More information

Introduction to Geodatabase and Spatial Management in ArcGIS. Craig Gillgrass Esri

Introduction to Geodatabase and Spatial Management in ArcGIS. Craig Gillgrass Esri Introduction to Geodatabase and Spatial Management in ArcGIS Craig Gillgrass Esri Session Path The Geodatabase - What is it? - Why use it? - What types are there? - What can I do with it? Query Layers

More information

12 Abstract Data Types

12 Abstract Data Types 12 Abstract Data Types 12.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Define the concept of an abstract data type (ADT). Define

More information

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017 Applied Databases Lecture 5 ER Model, Normal Forms Sebastian Maneth University of Edinburgh - January 30 th, 2017 Outline 2 1. Entity Relationship Model 2. Normal Forms From Last Lecture 3 the Lecturer

More information

Lecturer 2: Spatial Concepts and Data Models

Lecturer 2: Spatial Concepts and Data Models Lecturer 2: Spatial Concepts and Data Models 2.1 Introduction 2.2 Models of Spatial Information 2.3 Three-Step Database Design 2.4 Extending ER with Spatial Concepts 2.5 Summary Learning Objectives Learning

More information

Database Technology Introduction. Heiko Paulheim

Database Technology Introduction. Heiko Paulheim Database Technology Introduction Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query Processing Transaction Manager Introduction to the Relational Model

More information

CHAPTER 2: DATA MODELS

CHAPTER 2: DATA MODELS CHAPTER 2: DATA MODELS 1. A data model is usually graphical. PTS: 1 DIF: Difficulty: Easy REF: p.36 2. An implementation-ready data model needn't necessarily contain enforceable rules to guarantee the

More information

Strategic Information Systems Systems Development Life Cycle. From Turban et al. (2004), Information Technology for Management.

Strategic Information Systems Systems Development Life Cycle. From Turban et al. (2004), Information Technology for Management. Strategic Information Systems Systems Development Life Cycle Strategic Information System Any information system that changes the goals, processes, products, or environmental relationships to help an organization

More information

Why Study the Relational Model? The Relational Model. Relational Database: Definitions. The SQL Query Language. Relational Query Languages

Why Study the Relational Model? The Relational Model. Relational Database: Definitions. The SQL Query Language. Relational Query Languages Why Study the Relational Model? The Relational Model Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models E.G., IBM s IMS Recent competitor: object-oriented

More information

Modern Systems Analysis and Design Sixth Edition

Modern Systems Analysis and Design Sixth Edition Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Designing Databases Learning Objectives Concisely define each of the following key database design terms:

More information

2. An implementation-ready data model needn't necessarily contain enforceable rules to guarantee the integrity of the data.

2. An implementation-ready data model needn't necessarily contain enforceable rules to guarantee the integrity of the data. Test bank for Database Systems Design Implementation and Management 11th Edition by Carlos Coronel,Steven Morris Link full download test bank: http://testbankcollection.com/download/test-bank-for-database-systemsdesign-implementation-and-management-11th-edition-by-coronelmorris/

More information

Introduction To Computers

Introduction To Computers Introduction To Computers Chapter No 7 Introduction To Databases Overview Introduction to database To make use of information, you have to be able to find the information Data files and databases are no

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

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10 Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10 RAJIV GANDHI COLLEGE OF ENGINEERING & TECHNOLOGY, KIRUMAMPAKKAM-607 402 DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

More information

Database Systems. Sven Helmer. Database Systems p. 1/567

Database Systems. Sven Helmer. Database Systems p. 1/567 Database Systems Sven Helmer Database Systems p. 1/567 Chapter 1 Introduction and Motivation Database Systems p. 2/567 Introduction What is a database system (DBS)? Obviously a system for storing and managing

More information

SQL Simple Queries. Chapter 3.1 V3.01. Napier University

SQL Simple Queries. Chapter 3.1 V3.01. Napier University SQL Simple Queries Chapter 3.1 V3.01 Copyright @ Napier University Introduction SQL is the Structured Query Language It is used to interact with the DBMS (database management system) SQL can Create Schemas

More information

COURSE OVERVIEW THE RELATIONAL MODEL. CS121: Relational Databases Fall 2017 Lecture 1

COURSE OVERVIEW THE RELATIONAL MODEL. CS121: Relational Databases Fall 2017 Lecture 1 COURSE OVERVIEW THE RELATIONAL MODEL CS121: Relational Databases Fall 2017 Lecture 1 Course Overview 2 Introduction to relational database systems Theory and use of relational databases Focus on: The Relational

More information

Test bank for accounting information systems 1st edition by richardson chang and smith

Test bank for accounting information systems 1st edition by richardson chang and smith Test bank for accounting information systems 1st edition by richardson chang and smith Chapter 04 Relational Databases and Enterprise Systems True / False Questions 1. Three types of data models used today

More information

The Relational Model. Chapter 3

The Relational Model. Chapter 3 The Relational Model Chapter 3 Why Study the Relational Model? Most widely used model. Systems: IBM DB2, Informix, Microsoft (Access and SQL Server), Oracle, Sybase, MySQL, etc. Legacy systems in older

More information

Relational Model: History

Relational Model: History Relational Model: History Objectives of Relational Model: 1. Promote high degree of data independence 2. Eliminate redundancy, consistency, etc. problems 3. Enable proliferation of non-procedural DML s

More information

GIS Data Recap. Databases HOW? Spatial Databases 2/4/2016. GEO327G/386G, UT Austin 1. GIS = Lots and Lots of Tabular Data. Goals:

GIS Data Recap. Databases HOW? Spatial Databases 2/4/2016. GEO327G/386G, UT Austin 1. GIS = Lots and Lots of Tabular Data. Goals: Databases GIS Data Recap Managing Data for Retrieval, Update, & Calculation ID Name Spudded Completed 40 Exxon #1 2/4/96 6/3/96 Production (barrels/day, cfs) 43 Shell #5 3/14/97 6/12/96 ID Oil Gas Water

More information

Database Management System 9

Database Management System 9 Database Management System 9 School of Computer Engineering, KIIT University 9.1 Relational data model is the primary data model for commercial data- processing applications A relational database consists

More information

DOWNLOAD PDF INSIDE RELATIONAL DATABASES

DOWNLOAD PDF INSIDE RELATIONAL DATABASES Chapter 1 : Inside Microsoft's Cosmos DB ZDNet Inside Relational Databases is an excellent introduction to the topic and a very good resource. I read the book cover to cover and found the authors' insights

More information

COURSE OVERVIEW THE RELATIONAL MODEL. CS121: Introduction to Relational Database Systems Fall 2016 Lecture 1

COURSE OVERVIEW THE RELATIONAL MODEL. CS121: Introduction to Relational Database Systems Fall 2016 Lecture 1 COURSE OVERVIEW THE RELATIONAL MODEL CS121: Introduction to Relational Database Systems Fall 2016 Lecture 1 Course Overview 2 Introduction to relational database systems Theory and use of relational databases

More information

Lecture2: Database Environment

Lecture2: Database Environment College of Computer and Information Sciences - Information Systems Dept. Lecture2: Database Environment 1 IS220 : D a t a b a s e F u n d a m e n t a l s Topics Covered Data abstraction Schemas and Instances

More information

CPS 510 Data Base I. There are 3 forms of database descriptions the ANSI/SPARK, 1975 and so on

CPS 510 Data Base I. There are 3 forms of database descriptions the ANSI/SPARK, 1975 and so on Introduction DBMS 1957 A database can be defined as a set of Master files, organized & administered in a flexible way, so that the files in the database can be easily adapted to new unforeseen tasks! Relation

More information

DBMS. Relational Model. Module Title?

DBMS. Relational Model. Module Title? Relational Model Why Study the Relational Model? Most widely used model currently. DB2,, MySQL, Oracle, PostgreSQL, SQLServer, Note: some Legacy systems use older models e.g., IBM s IMS Object-oriented

More information

What s a database system? Review of Basic Database Concepts. Entity-relationship (E/R) diagram. Two important questions. Physical data independence

What s a database system? Review of Basic Database Concepts. Entity-relationship (E/R) diagram. Two important questions. Physical data independence What s a database system? Review of Basic Database Concepts CPS 296.1 Topics in Database Systems According to Oxford Dictionary Database: an organized body of related information Database system, DataBase

More information

The Relational Model. Chapter 3. Database Management Systems, R. Ramakrishnan and J. Gehrke 1

The Relational Model. Chapter 3. Database Management Systems, R. Ramakrishnan and J. Gehrke 1 The Relational Model Chapter 3 Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc.

More information

The Relational Model

The Relational Model The Relational Model UVic C SC 370, Fall 2002 Daniel M. German Department of Computer Science University of Victoria 3 1 The Relational Model CSC 370 dmgerman@uvic.ca Overview How is data represented in

More information

Relational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity

Relational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity COS 597A: Principles of Database and Information Systems Relational model continued Understanding how to use the relational model 1 with as weak entity folded into folded into branches: (br_, librarian,

More information

RELATIONAL DATA MODEL

RELATIONAL DATA MODEL RELATIONAL DATA MODEL EGCO321 DATABASE SYSTEMS KANAT POOLSAWASD DEPARTMENT OF COMPUTER ENGINEERING MAHIDOL UNIVERSITY RELATIONAL DATA STRUCTURE (1) Relation: A relation is a table with columns and rows.

More information

Databases. Managing Data for Retrieval, Update, & Calculation. Drilling Record ID Name Spudded Completed. 40 Exxon #1 2/4/96 6/3/96

Databases. Managing Data for Retrieval, Update, & Calculation. Drilling Record ID Name Spudded Completed. 40 Exxon #1 2/4/96 6/3/96 Databases Managing Data for Retrieval, Update, & Calculation Drilling Record ID Name Spudded Completed 40 Exxon #1 2/4/96 6/3/96 43 Shell #5 3/14/97 6/12/96 Production (barrels/day, cfs) ID Oil Gas Water

More information

Lecture 03. Spring 2018 Borough of Manhattan Community College

Lecture 03. Spring 2018 Borough of Manhattan Community College Lecture 03 Spring 2018 Borough of Manhattan Community College 1 2 Outline 1. Brief History of the Relational Model 2. Terminology 3. Integrity Constraints 4. Views 3 History of the Relational Model The

More information

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38 Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM

More information

Chapter 11: Data Management Layer Design

Chapter 11: Data Management Layer Design Systems Analysis and Design With UML 2.0 An Object-Oriented Oriented Approach, Second Edition Chapter 11: Data Management Layer Design Alan Dennis, Barbara Wixom, and David Tegarden 2005 John Wiley & Sons,

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query

More information

Relational Database Management Systems Oct I. Section-A: 5 X 4 =20 Marks

Relational Database Management Systems Oct I. Section-A: 5 X 4 =20 Marks Relational Database Management Systems Oct 2015 1 I. Section-A: 5 X 4 =20 Marks 1. Data Consistency Files and application programs are created by different programmers over a long period of time, the files

More information

Advanced Database Applications. Object Oriented Database Management Chapter 13 10/29/2016. Object DBMSs

Advanced Database Applications. Object Oriented Database Management Chapter 13 10/29/2016. Object DBMSs Object Oriented Database Chapter 13 1 Object DBMSs Underlying concepts: Freely sharing data across processing routines creates unacceptable data dependencies All software should be constructed out of standard,

More information

The Relational Model

The Relational Model The Relational Model What is the Relational Model Relations Domain Constraints SQL Integrity Constraints Translating an ER diagram to the Relational Model and SQL Views A relational database consists

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

Database Systems ( 資料庫系統 )

Database Systems ( 資料庫系統 ) Database Systems ( 資料庫系統 ) 9.28.2011 Lecture #3 1 Course Administration Please download HW #1 from course homepage It is due 10/12/2011. This lecture: R&G Chapter 3 Next week reading: R&G Chapter 41~ 4.1

More information

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis Multiple Choice Questions 1. Which of the following sentence is NOT correct about a logical model: A. is implementation dependent

More information

Introduction to Database Systems. The Relational Data Model. Werner Nutt

Introduction to Database Systems. The Relational Data Model. Werner Nutt 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

Managing Data Resources

Managing Data Resources Chapter 7 OBJECTIVES Describe basic file organization concepts and the problems of managing data resources in a traditional file environment Managing Data Resources Describe how a database management system

More information

TABLES, ANATOMY OF A TABLE

TABLES, ANATOMY OF A TABLE week 6 TABLES, ANATOMY OF A TABLE topics of the week Table structure Working with tables Table relationships Cardinality, Joins and Relates Table Jargon What is a Database? What is a Table? What is a Record/Row?

More information

IT 3203 Introduction to Web Development

IT 3203 Introduction to Web Development IT 3203 Introduction to Web Development Databases and SQL April 7 Notice: This session is being recorded. Copyright 2007 by Bob Brown Disadvantages of File Processing Program-Data Dependence All programs

More information

Teaching Scheme BIT/MMC/BCS Database Systems 1

Teaching Scheme BIT/MMC/BCS Database Systems 1 Teaching Scheme BIT/MMC/BCS Database Systems 1 Level : 1 Year : 2000 2001 Konstantina Lepinioti (tlepinio@bournemouth.ac.uk) Melanie Coles (mcoles@bournemouth.ac.uk) Autumn Term Week Lecture Seminar/Lab

More information

Databases. Jörg Endrullis. VU University Amsterdam

Databases. Jörg Endrullis. VU University Amsterdam Databases Jörg Endrullis VU University Amsterdam The Relational Model Overview 1. Relational Model Concepts: Schema, State 2. Null Values 3. Constraints: General Remarks 4. Key Constraints 5. Foreign Key

More information

Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University

Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University 1 Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University Lecture 3 Part A CIS 311 Introduction to Management Information Systems (Spring 2017)

More information

Introduction to Data Management. Lecture #4 (E-R Relational Translation)

Introduction to Data Management. Lecture #4 (E-R Relational Translation) Introduction to Data Management Lecture #4 (E-R Relational Translation) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v Today

More information

Modern Systems Analysis and Design

Modern Systems Analysis and Design Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Designing Databases Learning Objectives Concisely define each of the following key database design terms:

More information