Prepare an ERD for the following scenario Renting a movie at Blockbuster: Each movie is described by an ID, name, genre (horror, comedy, drama, romantic,

Slides:



Advertisements
Similar presentations
Assignment Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the.
Advertisements

Greg Riccardi Florida State University. Using SQL to Manipulate Database Content and Structure How to create queries in SQL –Simple select statements.
Data Design The futureERD - CardinalityCODINGRelationshipsDefinition.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
Normalization Queries (contd)
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
Week 2 Normalization and Queries
LSP 121 Week 2 Normalization and Queries. Normalization The Old Car Club database presented a problem – what if one person owns multiple cars? (One owner.
Entity PrimaryKey Attribute relationship Cardinality: zero to many Cardinality: one and only one Cardinality: one to many Explanation Entity Relationship.
Data Modeling and Entity- Relationship Model I IST2101.
Review Session What is data, what is information, and give a real world example to differentiate these two concepts.
6 < > 99 8 = 8 Click mouse for next screen. Lesson 2.
LSP 121 Week 2 Normalization and Advanced Queries.
Practice of ER modeling
Chapter Four Objectives Introduction to SQL Types of SQL statements Concepts of DDL & DML Creating Tables Restrictions on Tables Data Definition Language(DDL)
DATABASE DESIGN I IST 210: Organization of Data IST210 1.
R ELATIONAL D ATA M ODEL Joe Meehean 1. R ELATIONAL D ATA M ODEL Data stored as a set of relations really just tables Tables related to one another through.
Oracle Data Definition Language (DDL) Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Tutorial 3. This tutorial went through how to convert multiplicity numbering used in UML modelling to ERD, and vice versa. In the exam and assignments,
SQL Schemas DATA SCIENCE BOOTCAMP. Schema The structure of the database (relationships between tables)
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Databases in Web Devolvement By Andy Larson Using Microsoft Sever 2000 with ASP Database Integrity Inserting data Stored procedures Views Triggers Tips.
CS 1308 Computer Literacy and the Internet
What is a Database?. “A persistent & organised store of data. ” Persistent:  Non-volatile  Using secondary storage Organised:  Data organised into.
Jessica Johnson, Louie Livon-Bemel. Question 1 When converting a narrative requirements document into an ERD, which of the following would potentially.
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 7: SQL, the Structured Query Language Instructor’s name and.
Order Database – ER Diagram Prepared by Megan Foster Fall Semester 2014.
Fox MIS Spring 2011 Database Week 6 ERD and SQL Exercise.
Exam 1 Review: ERDs, Schemas, SQL Out Describe Elements of an ERD Create Schema from ERD Notes: Associative Entities.
MIS2502: Data Analytics Relational Data Modeling
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Hibernates - Many to One Association. May 12, 2011 What is Association? Association is the relation between two objects. One class holds a reference of.
Information System Design “Student Registration System Example”
Southern Methodist University CSE CSE 2337 Introduction to Data Management Chapter 2.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Database Design I (In-Class Exercise Answer) IST 210: Organization of Data IST2101.
INF1343, Winter 2012 Data Modeling and Database Design Yuri Takhteyev Faculty of Information University of Toronto This presentation is licensed under.
Information System & Database Design
Database Design and Implementation
Translating ER into Relations; Normalization
MIS2502: Data Analytics Relational Data Modeling
E-R Diagram (Cont.) Draw ER Diagram for the following scenario:
IST 210: Organization of Data
COMP 430 Intro. to Database Systems
INF385T: Information Modeling — Class 11 Relational Database Design from ER Models Presented November 2 Karen Wickett,
Chapter 12 Information Systems.
Order Database – ER Diagram
Order Database – ER Diagram
MIS5101: Business Intelligence Relational Data Modeling
Field Table Sort Show Criteria OR
Relational Schemas Classroom (building, room-number, capacity) Department (dept-name, building, budget) Course (course-id, title, dept-name, credits) Instructor.
Let’s go to the movies. Which types of movies do you like?
Database Structure Chapter 16.
Level 4 Unit 11 Ms. Vargas.
Insert, Update, Delete Manipulating Data.
MIS2502: Data Analytics Relational Data Modeling
MIS2502: Data Analytics Converting ERDs to Schemas
RELATIONAL DATABASES AND XML
Microsoft Applications
MIS2502: Data Analytics Relational Data Modeling
ER Diagram Master How to use this template
A Very Brief Introduction to Relational Databases
Day 2 - Basic Database Backbone
Instructor Information: Mark Jamil
MIS2502: Data Analytics Relational Data Modeling 3
Assignment: SQL #2 Putting Information into a Database
កម្មវិធីបង្រៀន SQL Programming ជាភាសាខ្មែរ Online SQL Training Course
កម្មវិធីបង្រៀន SQL Programming ជាភាសាខ្មែរ Online SQL Training Course
SQL AUTO INCREMENT Field
Presentation transcript:

Prepare an ERD for the following scenario Renting a movie at Blockbuster: Each movie is described by an ID, name, genre (horror, comedy, drama, romantic, and foreign) A movie can be rented by one or many customers. A customer is described by an ID, name, address, credit card number.

Faculty Course Teaches FacultyID First name Last Name Last Name Course Number Course name Semester Describe the relationship in this ERD and convert into tables

Faculty FacultyID FirstName LastName Course CourseNumber CourseName Faculty-Course FacultyCourseID FacultyID CourseNumber Semester FacultyCourseIDFacultyIDCourseIDSemester 1510Spring Fall Spring Fall 2011 Converting that ERD into a schema

Pet PetID INT OwnerID INT Name VARCHAR(30) Weight DECIMAL(5,1) Type (dog, cat, fish) VARCHAR(25) Owner OwnerID INT Name VARCHAR(30) Street VARCHAR(55) City VARCHAR(25) State VARCHAR(2) Zip VARCHAR(10) Query this database (petdb) 1)How much does “Fluffy” weigh? 2)What is the average weight of a cat? 3)What is the name of the owner of “Snuggles”?

1)How much does “Fluffy” weigh? SELECT pet.weight FROM petdb.pet WHERE pet.name = ‘Fluffy’ 2) What is the average weight of a cat? SELECT AVG(pet.weight) FROM petdb.pet WHERE pet.type = ‘Cat’ 3) What is the name of the owner of “Snuggles”? SELECT owner.name FROM petdb.owner, petdb.pet WHERE owner.ownerid = pet.ownerid AND pet.name = ‘Snuggles’