INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under.

Slides:



Advertisements
Similar presentations
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Advertisements

Lecture 1 Intro Databases and Information Systems DT210 S McKeever 1.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Lecture 1: Introduction to Relational.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Can you name these characters??? STAR WARS QUIZ A LONG TIME AGO, IN A GALAXY FAR FAR AWAY… (click to start)
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
Simple Database.
CS 3630 Database Design and Implementation. Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
CSC 171 – FALL 2001 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
Chapter 10: The Data Tier We discuss back-end data storage for Web applications, relational data, and using the MySQL database server for back-end storage.
1 Digital Preservation Testbed Database Preservation Issues Remco Verdegem Bern, 9 April 2003.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
CF Database I Jeff Peters Why Are You Here? Data and Persistence ODBC Relational vs. Flat SQL CFQUERY, CFOUTPUT, CFLOOP Practicum.
Database Basics BCIS 3680 Enterprise Programming.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Introduction to Database Programming with Python Gary Stewart
Database Applications Programming CS 362 Dr. Samir Tartir 2014/2015 First Semester.
CCT396, Fall 2011 Database Design and Implementation Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under.
CCT396, Fall 2011 Database Design and Implementation Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under.
CCT396, Fall 2011 Database Design and Implementation Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
Welcome to INF1343! Database Modeling and Database Design This presentation is licensed under Creative Commons Attribution License, v To view a copy.
CCT395, Week 4 Database Design and ER Modeling This presentation is licensed under Creative Commons Attribution License, v To view a copy of this.
INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under.
CCT395, Week 12 Storage, Grid Computing, Review This presentation is licensed under Creative Commons Attribution License, v To view a copy of this.
INF1343, Winter 2011 Data Modeling and Database Design Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under.
INF1343, Week 6 Implementing a Database with SQL This presentation is licensed under Creative Commons Attribution License, v To view a copy of this.
CCT395, Week 11 Review, Permissions Physical Storage and Performance This presentation is licensed under Creative Commons Attribution License, v. 3.0.
CCT395, Week 6 Implementing a Database with SQL and a Case Study Exercise This presentation is licensed under Creative Commons Attribution License, v.
Database Design and Implementation
CCT395, Week 2 Introduction to SQL Yuri Takhteyev September 15, 2010
CCT396, Fall 2011 Database Design and Implementation Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
INF1343, Week 4 Database Design and ER Modeling This presentation is licensed under Creative Commons Attribution License, v To view a copy of this.
CCT396, Fall 2011 Database Design and Implementation Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
CCT395, Week 5 Translating ER into Relations; Normalization This presentation is licensed under Creative Commons Attribution License, v To view a.
CCT395, Week 7 SQL with PHP This presentation is licensed under Creative Commons Attribution License, v To view a copy of this license, visit
INF1343, Winter 2011 Data Modeling and Database Design Yuri Takhteyev University of Toronto This presentation is licensed under Creative Commons Attribution.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Intro to MIS – MGS351 Databases and Data Warehouses
CS 3630 Database Design and Implementation
“Introduction To Database and SQL”
Introduction to Dynamic Web Programming
Translating ER into Relations; Normalization
CS320 Web and Internet Programming SQL and MySQL
Advanced Accounting Information Systems
Data Modeling and Database Design INF1343, Winter 2012 Yuri Takhteyev
Database System Concepts and Architecture
Special Topics in CCIT: Databases
Principles of Software Development
Database Design and Implementation
Data Modeling and Database Design
Data Modeling and Database Design INF1343, Winter 2012 Yuri Takhteyev
Database Design and Implementation
Data Modeling and Database Design INF1343, Winter 2012 Yuri Takhteyev
Databases and Data Warehouses Chapter 3
CIS 336 STUDY Lessons in Excellence-- cis336study.com.
“Introduction To Database and SQL”
MANAGING DATA RESOURCES
Database.
CS3220 Web and Internet Programming SQL and MySQL
CS3220 Web and Internet Programming SQL and MySQL
Lecuter-1.
CS4540 Special Topics in Web Development SQL and MS SQL
Presentation transcript:

INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under Creative Commons Attribution License, v To view a copy of this license, visit This presentation incorporates images from the Crystal Clear icon collection by Everaldo Coelho, available under LGPL from

Week 1 Introducing Databases the Relational Data Model and SQL

What is a “Database”? “an organized collection of data” (digital, managed with software) “DBMS”

Bob information Alic e

Bob information Alic e

Bob an information system

Alic e Bob storing information + doing things with it

Alic e Bob application software database “persistent storage”

Alic e Bob database “persistent storage”

What is Data? Data Information Knowledge

What is Data? Values Database Bits Records

Database Elements “logical” representation “physical” representation

Basic Data Types Numbers 42, 2.7, 7.2×10 -19, Text “Strings” “Yoda”, “Chewbacca”, “A long time ago in a galaxy far, far away....”

More Complex Data Time “Sept. 7, 2011” ( ) Binary “Blobs” contents of an image file Geometric a line, a polygon

Databases Models

Key-Value Jedi Master, unknown species smuggler, human Yoda Han Solo

Hierarchical character s human wookiee unknown species Padmé Amidala Chewbacca Yoda Han Solo Obi-Wan Kenobi

Network human wookieeChewbacca Yoda Han Solo Obi-Wan Kenobi Jedi Master

Relational A notion of a “relation” not to be confused with a “relationship”

A Relation (“Yoda”, “Jedi Master”)

A Relation (“Yoda”, “Jedi Master”, “unknown species”)

A Relation (“Yoda”, “Jedi Master”, “unknown species”) (“San Solo”, “smuggler”, “Human”) (“Padmé Amidala”, “queen”, “Human”) (“Jabba”, “crime lord”, “Hutt”) (“Jar Jar Binks”, “senator”, “Gungan”)

Another Relation (“Human”, “humanoid”, 1.7) (“Gungan”, “humanoid”, 1.89) (“Hutt”, “gastropod”, 3.5) (“Ewok”, “furry biped”, 0.9)

And Another (“humanoid”, 2) (“gastropod”, 0)

Tabular Form persona species_type species

Tabular Form persona species_type species

Relational Data Modeling Finding a proper relational representation for data

RDBMS MySQL, PostgreSQL, Oracle, Sybase, IBM DB2, Informix, MS SQL Server, MS Access*

Accessing a Database

Built-in GUI

Networked Client databas e server databas e client

A 3-Tier System databas e server application server web client

A Query Language commands status, results

Structured Query Language (Some people say “Sequel”)

An SQL Statement select name, occupation from persona where species=”Wookiee”;

An SQL Statement select name, occupation from persona where species="Wookiee";

persona

MySQL Workbench (also available in this lab)

your database username from the handout (NOT your utorid) r2.ischool.utoronto.ca

your database password from the handout

1 2

An SQL Statement select name, occupation from persona where species="Wookiee"; strings identifier s keyword s — not case-sensitive (de facto) — often are case sensitive — depends on configuration

An SQL Statement so: select = SELECT* = seLecT** from = FROM* = From** * some people prefer this ** ugly, don't do this but: persona ≠ PERSONA ≠ Persona "Wookiee" ≠ "wookiee" (sometimes)

Quotes Text Strings must always be quoted Identifiers must be when the happen to be keywords (use backticks: `...`) Quote Types "..." or '...', not “...” or ‘...’ ( " must be closed by ", ' by ')

The Semi-Colon Don’t forget the semi-colon;

This Course

Office Hours Time: Mondays, 14:00–15:00 (Not today, though.) Or by appointment. Place: Room 328 in iSouth (45 Wilcocks St.)

Contact Use the Q&A system if possible. If ing, use UToronto mail Put “INF1343” in the subject. Expect 2 day turn-around.

The Q&A System - use for all non-private questions - feel free to answer too!

“SQL ” “RDD”

The Course Outline

Grading Exercises & Quizzes Final Project (2 deliverables) The Final Exam “Standard” grading vs “the Project Option”

Questions?