Principles of GIS Fundamental database concepts – II Shaowen Wang

Slides:



Advertisements
Similar presentations
Data Bits Models Classes & Schemes Rows & Tables Keys Associations $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 Final DataBit.
Advertisements

May 26, 2005MySQL Tutorial - 11 MySQL Tutorial 1 – How to Use MySQL CSCI 2140 TA: Jiye Li May 26, 2005
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
Geographic Information Systems
SQL DDL constraints Restrictions on the columns and tables 1SQL DDL Constraints.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
PHP and MySQL Code Reuse, OO, Error Handling and MySQL (Intro)
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 14: Object-Oriented Data Modeling
PHP1-1 PHP & SQL Xingquan (Hill) Zhu
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Object Orientation An Object oriented approach views systems and programs as a collection of interacting objects. An object is a thing in a computer system.
Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and National Center for Supercomputing Applications.
CyberGIS in Action CyberGIS in Action Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and Geographic.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
Structured Query Language Chris Nelson CS 157B Spring 2008.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
CS 160: Software Engineering October 6 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
PHP and MySQL Code Reuse, OO, Error Handling and MySQL (Intro)
What’s a database? Data stored in a structured format that lends itself to easy manipulation and recall.
1 CS457 Object-Oriented Databases Chapters as reference.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Department of Computer Engineering MASTER THESIS OBJECT DATA MODELING AS STRUCTURING APPROACH IN DATABASE DESIGN Name : Anwar Mahmoud Dawoud Supervisor.
Zhangxi Lin Texas Tech University ISQS 6347, Data & Text Mining 1 ISQS 6339 Data Management and Business Intelligence Database Review.
Benjamin Post Cole Kelleher.  Availability  Data must maintain a specified level of availability to the users  Performance  Database requests must.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
Introduction to Databases & SQL Ahmet Sacan. What you’ll need Firefox, SQLite plugin Mirdb and Targetscan databases.
Geographic Information Systems GIS Data Databases.
Fundamental of Database Systems
Getting started with Accurately Storing Data
New Technology: Why, What ,How
Chapter 5 Introduction to SQL.
Information Systems Today: Managing in the Digital World
SQL in Oracle.
Object-Oriented Database Management System (ODBMS)
Principles of GIS Fundamental spatial concepts – Part II Shaowen Wang
Payroll Management System
CS1222 Using Relational Databases and SQL
MySQL Working on Turing.
Database Construction and Usage
Geographic Information Systems
3 Fundamentals of Object-Oriented Programming
Principles of GIS Fundamental database concepts Shaowen Wang
©Jiawei Han and Micheline Kamber Slides contributed by Jian Pei
Principles of GIS Geocomputation – Part II Shaowen Wang
The Relational Model Relational Data Model
Lec 3: Object-Oriented Data Modeling
CS1222 Using Relational Databases and SQL
MySQL Dr. Hsiang-Fu Yu National Taipei University of Education
Mapping UML to RDB, J.P.Nytun – page 1
Getting to First Base: Introduction to Database Concepts
CS1222 Using Relational Databases and SQL
CS1222 Using Relational Databases and SQL
Chapter # 7 Introduction to Structured Query Language (SQL) Part I.
Getting to First Base: Introduction to Database Concepts
Getting to First Base: Introduction to Database Concepts
Database Dr. Roueida Mohammed.
CS1222 Using Relational Databases and SQL
Updating Databases With Open SQL
DATABASE Purpose of database
មជ្ឈមណ្ឌលកូរ៉េ សហ្វវែរ អេច អ ឌី
Updating Databases With Open SQL
CS1222 Using Relational Databases and SQL
Geographic Information Systems
Presentation transcript:

Principles of GIS Fundamental database concepts – II Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and Geographic Information Science Department of Computer Science Department of Urban and Regional Planning National Center for Supercomputing Applications (NCSA) University of Illinois at Urbana-Champaign September 12, 2013

Connecting to DB % ssh username@geo480.cigi.uiuc.edu Login to DB Enter password Help: %psql --help Login to DB % psql -U geog480 -d geog480db

Some Postgres Commands List all accessible databases # \l Connect to a DB named 'geog480db' # \c geog480db List all the tables in current DB # \dt, # \d (show all relations)‏ Quit # \q

SQL Commands Create Tables Delete table # create table test(key int, attr varchar(20), value float); Delete table # drop table test;

SQL Commands Insert a row Update table contents Delete rows # insert into test values(1, 'attr0', 100); Update table contents # update test set attr='attr1' where key=1; Delete rows # delete from test where key=1;

SQL Commands List contents of table # select * from test; # select * from test where attr='attr1';

Extended Entity-Relationship Model Sub-type Specialization Super-type Generalization Inheritance

Object-Orientation Object State Behavior Class Attributes Method

O-O Features Encapsulation Inheritance and polymorphism Reduces modeling complexity Promotes reuse Inheritance and polymorphism Combats impedance mismatch Metaphorical power

Relational Databases Attribute Tuple Relation scheme Relation

Relation ID Candidate key Primary key

Operations on Relations Project Restrict

Relational Algebra Derived relational operators Performance Join Natural join Performance

Extensible RDBMS RDBMS problems when handling spatial data Data structure Performance Search

Logging into the system % ssh netid@geog480.cigi.uiuc.edu Login name: netid Password: your password % psql -U username –d tutorial Login name: geog480 Password: same

End of This Class