MIDTERM REVIEW IST 210 Organization of Data IST210 1.

Slides:



Advertisements
Similar presentations
Concepts of Database Management Seventh Edition
Advertisements

Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Lab Exercise This Week PHP Basics See last Friday’s slides for requirements Make sure you show the final results to TA to get credit 1IST210.
Relational Databases Chapter 4.
Introduction to Structured Query Language (SQL)
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 11.
Introduction to Structured Query Language (SQL)
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved. 1.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
Fundamentals, Design, and Implementation, 9/e Chapter 6 Introduction to Structured Query Language (SQL)
Structured Query Language Chapter Three (Excerpts) DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Introduction to Structured Query Language (SQL)
Structured Query Language Chapter Three DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Chapter 2. The Relational Model (cont.) IST2101. Review: Functional Dependency A relationship between attributes: some attribute(s) determine the value.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 7 Introduction to Structured Query Language (SQL)
Concepts of Database Management Sixth Edition
Microsoft Access 2010 Chapter 7 Using SQL.
Chapter 4 Relational Databases and Enterprise Systems
INFORMATION TECHNOLOGY IN BUSINESS AND SOCIETY SESSION 16 – SQL SEAN J. TAYLOR.
Chapter 3 Single-Table Queries
Microsoft Access 2010 Chapter 7 Using SQL. Change the font or font size for SQL queries Create SQL queries Include fields in SQL queries Include simple.
Constraints  Constraints are used to enforce rules at table level.  Constraints prevent the deletion of a table if there is dependencies.  The following.
Fundamentals, Design, and Implementation, 9/e CPE 481 Database Processing Chapter 6 Structured Query Language (SQL) Instructor:Suthep Madarasmi, Ph.D.
IST 210: ORGANIZATION OF DATA Chapter 1. Getting Started IST210 1.
1 Single Table Queries. 2 Objectives  SELECT, WHERE  AND / OR / NOT conditions  Computed columns  LIKE, IN, BETWEEN operators  ORDER BY, GROUP BY,
Concepts of Database Management Seventh Edition
Using Special Operators (LIKE and IN)
Concepts of Database Management Seventh Edition
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 6/1 Copyright © 2004 Please……. No Food Or Drink in the class.
SQL for Data Retrieval. Review Questions of Previous Class Q1. Show the sum of hours worked for project with ID 1200 (use ASSIGNMENT table) – Use “SUM”
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 7 Introduction to Structured.
IST 220 Introduction to Databases Course Wrap-up.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 7 (Part a): Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
STRUCTURED QUERY LANGUAGE SQL-II IST 210 Organization of Data IST210 1.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
DBSQL 5-1 Copyright © Genetic Computer School 2009 Chapter 5 Structured Query Language.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
SQL/Lesson 7/Slide 1 of 32 Implementing Indexes Objectives In this lesson, you will learn to: * Create a clustered index * Create a nonclustered index.
ITEC 3220A Using and Designing Database Systems Instructor: Prof. Z. Yang Course Website: 3220a.htm
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
Tallahassee, Florida, 2015 COP4710 Database Systems Midterm Review Fall 2015.
Assignment 1 Uploaded to course website Due next Tuesday, Sep 1, at 11:59pm.
CMPT 258 Database Systems Midterm Review. Regarding the Exam Oct 15 Thursday Close book Cheat sheet (1 side of an A4 paper)
© 2002 by Prentice Hall 1 Structured Query Language David M. Kroenke Database Concepts 1e Chapter 3 3.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
CSCI 3328 Object Oriented Programming in C# Chapter 12: Databases and LINQ – Exercises 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
1 Chapter 3 Single Table Queries. 2 Simple Queries Query - a question represented in a way that the DBMS can understand Basic format SELECT-FROM Optional.
CSC314 DAY 8 Introduction to SQL 1. Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SQL OVERVIEW  Structured Query Language  The.
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Chapter 1. Getting Started IST 210: Organization of Data IST2101.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
IST 210 Organization of Data
PL/SQL LANGUAGE MULITPLE CHOICE QUESTION SET-1
SQL 101.
Chapter # 7 Introduction to Structured Query Language (SQL) Part II.
Presentation transcript:

MIDTERM REVIEW IST 210 Organization of Data IST210 1

Exam Rules 1. The exam will be held at 4:15-5:30pm, on Wednesday 10/07/2015, in IST 110 (75 minutes). Try to come to class a few minutes early. Exam starts at 4:15pm. 2. The exam is close book. No computer or other digital device is allowed. 3. You can bring one double-sided letter-size cheat sheet. You should only have a pen or pencil, an eraser, and one cheat sheet on your desk during the exam. 4. You should sit at your assigned seat during the exam. The seat assignment will be displayed on the screen before the exam. 5. Turn in your midterm exam paper AND the cheat sheet. IST210 2

Exam Content All the exam contents are covered in our slides. We will not test the contents in the textbook but are not in slides. However, if you have problems in understanding the slides, you need to refer to the textbook. This exam will NOT test web-based programming (HTML and PHP). IST210 3

Exam Content Part 1. Choose ONE from the multiple choices. (2 points * 10 = 20 points) Part 2. Normalize a relation (similar to Assignment 1 & 2). (30 points) Describe the modification problems. List the candidate keys and functional dependencies in this relation. Is it a well-formed relation and why? If not, normalize this relation. Part 3. SQL (similar to Assignment 3). (50 points) Write SQL to create a table. Write SQL to insert data. Write SQL to answer queries. IST210 4

Some Tips You should thoroughly understand every assignment. All the assignment solutions are in ANGEL  Lessons  Solutions. You should go through all the examples, in-classes exercises, and review questions in the slides. Do this in the slideshow mode: When you review assignments or examples in slides, do NOT simply read the answer. Try to re-do them, compare your answers with the solution, and learn from the mistakes. You should consider putting some SQL commands on the cheat sheet, especially the template of creating tables. IST210 5

Chapter 1. Introduction to Database Problems with lists: redundancy, multiple themes, modification issues (delete, update, insert) From list to relational database: Break into tables, and join back using the value of the data Know how to query a relational database IST210 6

Chapter 2. The Relational Model Know the characteristics of a relation Know the definitions and synonyms of Table, Row, and Column Understand the definitions of key, composite key, candidate key, primary key, surrogate key, foreign key Know the concept of referential integrity Know the presentation of a relation with primary key (underline) and foreign key (italic) – If you suspect we might not be able to determine your writing of italic font, make a note! Understand functional dependency and definition of determinant, know how to find functional dependencies in a table. Know the principles for normalization and know the steps for normalization process (4 Steps) IST210 7

Chapter 3. SQL The best way to review this chapter is to understand every command in the slides and assignments. Do not only READ SQL. Reading SQL is easy. You have to know how to WRITE SQL by yourself. Try to re-write the SQL for the exercises in slides and assignment. Compare your answer with the solutions to understand the mistakes. It is important to learn from the mistakes! You should write down the SQL statements on the cheat sheet if you think necessary. IST210 8

Chapter 3. SQL Know how to create tables: (1) attribute definitions: data types, not null, unique, default, identity; (2) how to define primary key, foreign key; (3) referential integrity: delete/update cascade/no action. Know what delete/update cascade/no action mean. Delete a table: DROP Know how to insert a data record using SQL. Pay attention to surrogate key and null value. SELECT…FROM…WHERE… SELECT *, DISTINCT WHERE: match criteria, AND, OR, IN, NOT IN, BETWEEN, LIKE, wildcard, IS NULL Sort the results: ORDER BY … ASC/DESC Know how to use the build-in functions: SUM, AVG, COUNT, MIN, MAX GROUP BY…HAVING… Retrieve information from multiple tables: Subqueries and Joins IST210 9

Questions? IST210 10

GOOD LUCK! IST210 11