Data Modelling and Databases Exercise dates: March 20/March 27, 2017 Ce Zhang, Gustavo Alonso Last update: February 17, 2018.

Size: px
Start display at page:

Download "Data Modelling and Databases Exercise dates: March 20/March 27, 2017 Ce Zhang, Gustavo Alonso Last update: February 17, 2018."

Transcription

1 Data Modelling and Databases Exercise dates: March 20/March 27, 2017 Ce Zhang, Gustavo Alonso Last update: February 17, 2018 Spring Semester 2018 Head TA: Ingo Müller Datasets set-up This assignment will be discussed during the exercise slots indicated above. If you want feedback for your copy, hand it in during the lecture on the Wednesday before (preferably stapled and with your address). You can also annotate your copy with questions you think should be discussed during the exercise session. If you have questions that are not answered by the solution we provide, send them to our mailing list. This is a guide how to import three datasets into a PostgresSQL server, on which exercises of this and following weeks will be based. Tutorials describing how to install the database server and set up the pgadmin administration tool on Linux, MacOS, and Windows, are available on the course webpage 1. 1 Employee Dataset The Employee dataset is a synthetic sample dataset consisting of six tables modeling a simple HR application for managing employees together with their salaries, titles, and department affiliations. All of these can change over time, and all changes are recorded. Some employees can also be promoted to managers of a specific department. 1.1 Database Setup Download the provided example zip archive from the course website and decompress it into a folder of your choice. To create a new database in pgadmin, right-click on the Databases list item, and select the New Database entry from context menu. In the next dialog, you have to specify the name of new database. In this example, the database is called employee. 1

2 After a new database has been created, we define a schema and load the data. Start the SQL editor and open the provided schema.sql file. Read through the schema definition: it consists of Create Table statements. Execute the queries by pressing the Execute button. Then open the inserts.sql file, which contains Copy statements. The Copy instruction is used to load the data from a file (*.tbl) into the database. Edit the path provided to each Copy instruction (six in total) to point to the location where you extracted the zip archive.

3 After the query terminated successfully, you will be able to see the newly created tables under the Schemas/Tables list entry. 2 ZVV Dataset This dataset is a subset of the real-life ZVV dataset that is publicly available 2. The dataset contains tram stops in Zurich, and the trips the trams were scheduled to make on a specific day 2

4 (Monday, March ). Each stop has a stop_id, stop_name (e.g. Zürich, ETH/Universitätsspital ), and a location expressed in latitude and longitude floating points. A tram trip has a trip_id, a tram_number, and a trip_headsign, which indicates the direction in which the tram is heading. Each trip has multiple stops, where for each stop a tram makes, there is an arrival_time, a departing_time, a stop_id and a stop_sequence. 2.1 Database Setup Set up the ZVV database using the same steps as in Task TPC-H Dataset This dataset corresponds to the relational schema used in Task 1 in the previous exercise. It is a subset of an official benchmark suite 3 designed to test relational databases for performance of analytical queries. 3.1 Database Setup Set up the TPC-H database using the same steps as in Task Verification To verify that your database setup is working correctly, and that all the necessary data has been loaded, run the following three queries and check if your answers match. To run the queries, open the SQL editor and type in the following queries. 4.1 Employee Example Query: Return the first name, last name, department, salary, and title of all the current managers. SELECT FROM 3 e.first_name, e.last_name, d.dept_name, s.salary, t.title

5 JOIN JOIN JOIN JOIN WHERE employees e dept_manager m ON m.emp_no = e.emp_no departments d ON m.dept_no = d.dept_no salaries s ON s.emp_no = e.emp_no titles t ON t.emp_no = e.emp_no m.to_date > NOW() AND s.to_date > NOW() AND t.to_date > NOW() Result: first_name last_name dept_name salary title Vishwani Minakawa Marketing Manager Isamu Legleitner Finance Manager Karsten Sigstam Human Resources Manager Oscar Ghazalie Production Manager Leon DasSarma Development Manager Dung Pesch Quality Management Manager Hauke Zhang Sales Manager Hilary Kambil Research Manager Yuchang Sedman Customer Service Manager

6 4.2 ZVV Example Query: This query returns a sample timetable for a tram stop at a given time. Specifically, it returns the stop name, tram number, tram headsign, and departure time of all the trams leaving Zurich Central between 13:15 and 13:23. SELECT FROM s.stop_name, t.tram_number, t.trip_headsign, st.departure_time stops s, stop_times st, trips t WHERE t.trip_id = st.trip_id AND s.stop_id = st.stop_id AND s.stop_name like %Central AND st.departure_time between 13:15:00 and 13:23:00 ORDER BY st.departure_time Result: stop_name tram_number trip_headsign departure_time Zürich, Central 10 Zürich Flughafen, Fracht 13:15:48 Zürich, Central 4 Zürich, Bahnhof Altstetten N 13:16:06 Zürich, Central 15 Zürich, Klusplatz 13:16:12 Zürich, Central 6 Zürich, Bahnhof Enge 13:16:24 Zürich, Central 7 Zürich, Wollishofen 13:17:36 Zürich, Central 6 Zürich, Zoo 13:18:12 Zürich, Central 3 Zürich, Klusplatz 13:18:12 Zürich, Central 15 Zürich, Bucheggplatz 13:19:24 Zürich, Central 3 Zürich, Albisrieden 13:20:00 Zürich, Central 7 Zürich, Bahnhof Stettbach 13:20:12 Zürich, Central 4 Zürich, Bahnhof Tiefenbrunnen 13:20:42 Zürich, Central 10 Zürich, Bahnhofplatz/HB 13:22:06

7 4.3 TPC-H Example Query: Return how many of the most expensive part(s) were ordered per customer region SELECT FROM cust_r.regionname, sum(olquantity) AS ordered_quantity orderline ol, customer c, part p, supplypart sp, supplier s, orders o, nation supp_n, nation cust_n, region cust_r WHERE ol.orderid = o.orderid AND ol.partid = sp.partid AND ol.supplierid = sp.supplierid AND o.customerid = c.customerid AND c.nationid = cust_n.nationid AND cust_n.regionid = cust_r.regionid AND sp.partid = p.partid AND sp.supplierid = s.supplierid AND s.nationid = supp_n.nationid AND p.partretailprice IN (SELECT MAX(partretailprice) FROM part) GROUP BY cust_r.regionname ORDER BY ordered_quantity DESC; Result: regionname ordered_quantity AMERICA 224 AFRICA 210 MIDDLE EAST 106 ASIA 94 EUROPE 48

ETH Zurich Spring Semester Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March 20/March 27, 2017.

ETH Zurich Spring Semester Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March 20/March 27, 2017. Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Last update:

More information

Data Modelling and Databases Exercise dates: March 22/March 23, 2018 Ce Zhang, Gustavo Alonso Last update: March 26, 2018.

Data Modelling and Databases Exercise dates: March 22/March 23, 2018 Ce Zhang, Gustavo Alonso Last update: March 26, 2018. Data Modelling and Databases Exercise dates: March 22/March 23, 2018 Ce Zhang, Gustavo Alonso Last update: March 26, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 4: SQL This assignment will

More information

Assignment 5: SQL II Solution

Assignment 5: SQL II Solution Data Modelling and Databases Exercise dates: March 29/March 30, 2018 Ce Zhang, Gustavo Alonso Last update: April 12, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 5: SQL II Solution This assignment

More information

ETH Zurich Spring Semester Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March 27/March 31, Exercise 5: SQL II.

ETH Zurich Spring Semester Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March 27/March 31, Exercise 5: SQL II. Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: March Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Last update:

More information

Assignment 6: SQL III

Assignment 6: SQL III Data Modelling and Databases Exercise dates: April 12/April 13, 2018 Ce Zhang, Gustavo Alonso Last update: April 16, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 6: SQL III This assignment

More information

Assignment 6: SQL III Solution

Assignment 6: SQL III Solution Data Modelling and Databases Exercise dates: April 12/April 13, 2018 Ce Zhang, Gustavo Alonso Last update: April 16, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 6: SQL III Solution This assignment

More information

Assignment 12: Commit Protocols and Replication

Assignment 12: Commit Protocols and Replication Data Modelling and Databases Exercise dates: May 24 / May 25, 2018 Ce Zhang, Gustavo Alonso Last update: June 04, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 12: Commit Protocols and Replication

More information

Assignment 2: Relational Model

Assignment 2: Relational Model Data Modelling and Databases Exercise dates: March 8/March 9, 208 Ce Zhang, Gustavo Alonso Last update: March 6, 208 Spring Semester 208 Head TA: Ingo Müller Assignment 2: Relational Model This assignment

More information

Exam. Question: Total Points: Score:

Exam. Question: Total Points: Score: FS 2016 Data Modelling and Databases Date: June 9, 2016 ETH Zurich Systems Group Prof. Gustavo Alonso Exam Name: Question: 1 2 3 4 5 6 7 8 9 10 11 Total Points: 15 20 15 10 10 15 10 15 10 10 20 150 Score:

More information

Assignment 3: Relational Algebra Solution

Assignment 3: Relational Algebra Solution Data Modelling and Databases Exercise dates: March 15/March 16, 2018 Ce Zhang, Gustavo Alonso Last update: April 13, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 3: Relational Algebra Solution

More information

Assignment 7: Integrity Constraints

Assignment 7: Integrity Constraints Data Modelling and Databases Exercise dates: April 19, 2018 Ce Zhang, Gustavo Alonso Last update: April 19, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 7: Integrity Constraints This assignment

More information

Assignment 2: Relational Model Solution

Assignment 2: Relational Model Solution Data Modelling and Databases Exercise dates: March 8/March 9, 208 Ce Zhang, Gustavo Alonso Last update: March 6, 208 Spring Semester 208 Head TA: Ingo Müller Assignment 2: Relational Model Solution This

More information

Exam. Question: Total Points: Score:

Exam. Question: Total Points: Score: FS 2016 Data Modelling and Databases Date: August 17, 2016 ETH Zurich Systems Group Prof. Gustavo Alonso Exam Name: Question: 1 2 3 4 5 6 7 8 9 10 11 Total Points: 11 11 10 12 9 10 11 10 15 10 8 117 Score:

More information

Assignment 12: Commit Protocols and Replication Solution

Assignment 12: Commit Protocols and Replication Solution Data Modelling and Databases Exercise dates: May 24 / May 25, 2018 Ce Zhang, Gustavo Alonso Last update: June 04, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 12: Commit Protocols and Replication

More information

Exercise 12: Commit Protocols and Replication

Exercise 12: Commit Protocols and Replication Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: May 22, 2017 Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Eliza

More information

Exercise 9: Normal Forms

Exercise 9: Normal Forms Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Eliza Last update:

More information

Data Modeling and Databases Ch 7: Schemas. Gustavo Alonso, Ce Zhang Systems Group Department of Computer Science ETH Zürich

Data Modeling and Databases Ch 7: Schemas. Gustavo Alonso, Ce Zhang Systems Group Department of Computer Science ETH Zürich Data Modeling and Databases Ch 7: Schemas Gustavo Alonso, Ce Zhang Systems Group Department of Computer Science ETH Zürich Database schema A Database Schema captures: The concepts represented Their attributes

More information

processing data with a database

processing data with a database processing data with a database 1 MySQL and MySQLdb MySQL: an open source database running MySQL for database creation MySQLdb: an interface to MySQL for Python 2 CTA Tables in MySQL files in GTFS feed

More information

processing data from the web

processing data from the web processing data from the web 1 CTA Tables general transit feed specification stop identification and name finding trips for a given stop 2 CTA Tables in MySQL files in GTFS feed are tables in database

More information

Indexing & Views. Monday, March 6, 2017

Indexing & Views. Monday, March 6, 2017 Indexing & Views Monday, March 6, 2017 Agenda Announcements Reading Quiz Indexing Views Midterm details Announcements Next class: Midterm Midterm location: PHR 2.108 Review session: Wed 12-1pm @ GDC 2.210

More information

Exercise 12: Commit Protocols and Replication

Exercise 12: Commit Protocols and Replication Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: May 22, 2017 Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Eliza

More information

Joins. Monday, February 20, 2017

Joins. Monday, February 20, 2017 Joins Monday, February 20, 2017 Agenda Announcements Reading Quiz Joins Discussion 4 Practice Problems! Announcements Lab 2: grades and comments will be released by end of week Next week: Lab 3 Lab 3 Setup

More information

CSCB20. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

CSCB20. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017 CSCB20 Introduction to Database and Web Application Programming Anna Bretscher Winter 2017 Welcome to CSCB20 Course Description: A practical introduction to databases and Web app development. Databases:

More information

A Sample Solution to the Midterm Test

A Sample Solution to the Midterm Test CS3600.1 Introduction to Database System Fall 2016 Dr. Zhizhang Shen A Sample Solution to the Midterm Test 1. A couple of W s(10) (a) Why is it the case that, by default, there are no duplicated tuples

More information

Who is the borrower whose id is 12345? σ borrower borrower_id = select * from borrower where borrower_id = '12345'

Who is the borrower whose id is 12345? σ borrower borrower_id = select * from borrower where borrower_id = '12345' Who is the borrower whose id is 12345? σ borrower borrower_id = 12345 select * from borrower where borrower_id = '12345' List the names of all borrowers π borrower last_name first_name select last_name,

More information

Exercise 11: Transactions

Exercise 11: Transactions Data Modelling and Databases (DMDB) ETH Zurich Spring Semester 2017 Systems Group Lecturer(s): Gustavo Alonso, Ce Zhang Date: Assistant(s): Claude Barthels, Eleftherios Sidirourgos, Eliza Last update:

More information

Advanced SQL and the Power of Rewriting Queries

Advanced SQL and the Power of Rewriting Queries Advanced SQL and the Power of Rewriting Queries Tony Andrews Themis Inc. Session Code: E07 Tuesday May24, 10:30 Platform: Application Developer Track Photo by Steve from Austin, TX, USA Often times there

More information

Assignment 1: Entity-Relationship Model Solution

Assignment 1: Entity-Relationship Model Solution Data odelling and Databases Exercise dates: arch /arch 2, 208 Ce Zhang, Gustavo Alonso Last update: arch 08, 208 Spring Semester 208 Head TA: Ingo üller Assignment : Entity-Relationship odel Solution This

More information

-- Jerad Godsave -- November 9, CIS Assignment A8.sql

-- Jerad Godsave -- November 9, CIS Assignment A8.sql -- Jerad Godsave -- November 9, 2015 -- CIS 310-01 4158 -- Assignment A8.sql -- 1. List the products with a list price greater than the average list price of all products. -- result set: ItemID

More information

Database Management Systems,

Database Management Systems, Database Management Systems SQL Query Language (2) 1 Topics Update Query Delete Query Integrity Constraint Cascade Deletes Deleting a Table Join in Queries Table variables More Options in Select Queries

More information

pygtfs Documentation Release Yaron de Leeuw

pygtfs Documentation Release Yaron de Leeuw pygtfs Documentation Release 0.1.2 Yaron de Leeuw January 26, 2014 Contents 1 Get it 1 2 Basic usage 3 3 gtfs2db 5 4 Detailed refernce 7 5 Contents: 9 5.1 The schedule module...........................................

More information

CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen

CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen LECTURE 9: INTRODUCTION TO SQL SELECT-FROM-WHERE STATEMENTS SUBQUERIES Set-up the database 1. Log in to your machine using

More information

An Introduction to Structured Query Language

An Introduction to Structured Query Language An Introduction to Structured Query Language Alexandra Roatiş David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2016 CS 348 SQL Winter

More information

Data Modelling and Databases. Exercise Session 2: Relational Model

Data Modelling and Databases. Exercise Session 2: Relational Model Data Modelling and Databases Exercise Session 2: Relational Model 1 Interactive Session Format You can watch others swim as often as you want. In the end, you can only learn it by doing it yourself. Alfons

More information

In this exercise you will display the Geo-tagged Wikipedia Articles Fusion Table in Google Maps.

In this exercise you will display the Geo-tagged Wikipedia Articles Fusion Table in Google Maps. Introduction to the Google Maps API v3 Adding a Fusion Table to Google Maps Fusion Tables, still in the experimental stages of development, is a Google product that allows you to upload and share data

More information

Report on Configurable Fields in Business Intelligence

Report on Configurable Fields in Business Intelligence Report on Configurable Fields in Business Intelligence Business Intelligence Configurable Fields Reporting The Platform Configurability feature in PlanSource HCM enables you to add new fields to PlanSource

More information

In-depth, influential, indispensable. The information you need from a source you trust

In-depth, influential, indispensable. The information you need from a source you trust In-depth, influential, indispensable The information you need from a source you trust Books and Analytical Papers More than 13,000 publications, including LOEs Books, Occasional Papers, Staff Discussion

More information

Natural-Join Operation

Natural-Join Operation Natural-Join Operation Natural join ( ) is a binary operation that is written as (r s) where r and s are relations. The result of the natural join is the set of all combinations of tuples in r and s that

More information

An Introduction to Structured Query Language

An Introduction to Structured Query Language An Introduction to Structured Query Language Grant Weddell Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Spring 2016 CS 348 (Intro to DB Mgmt) SQL

More information

Field required - The field column must be included in your feed, and a value must be

Field required - The field column must be included in your feed, and a value must be This document explains the types of files that comprise a GTFS transit feed and defines the fields used in all of those files. 1. Term Definitions (#term-definitions) 2. Feed Files (#feed-files) 3. File

More information

Wizdom Conference. GEA Connect - A task-based intranet CHRISTIAN LARSEN DIRECTOR, INTERNAL COMMUNICATION & CORPORATE EVENTS

Wizdom Conference. GEA Connect - A task-based intranet CHRISTIAN LARSEN DIRECTOR, INTERNAL COMMUNICATION & CORPORATE EVENTS Wizdom Conference GEA CHRISTIAN LARSEN DIRECTOR, INTERNAL COMMUNICATION & CORPORATE EVENTS Me Christian Larsen Director of Internal Communication & Corporate Events at GEA Group Intranet projects must

More information

Chris Singleton 03/12/2017 PROG 140 Transactions & Performance. Module 8 Assignment

Chris Singleton 03/12/2017 PROG 140 Transactions & Performance. Module 8 Assignment Chris Singleton 03/12/2017 PROG 140 Transactions & Performance Module 8 Assignment Turn In: For this exercise, you will submit one WORD documents (instead of a.sql file) in which you have copied and pasted

More information

LECTURE10: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES

LECTURE10: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES LECTURE10: DATA MANIPULATION IN SQL, ADVANCED SQL QUERIES Ref. Chapter5 From Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220: D a

More information

Week7: First Tutorial

Week7: First Tutorial Week7: First Tutorial Logic: student exercises (AND, OR, NOT) Student Exercise #1 Using the graphical design view of Access show the first name, last name and hourly pay rate of employees whose hourly

More information

CS 327E Lecture 8. Shirley Cohen. February 22, 2016

CS 327E Lecture 8. Shirley Cohen. February 22, 2016 CS 327E Lecture 8 Shirley Cohen February 22, 2016 Where we are Phase 1: SQL Phase 2: Database Design Phase 3: Database-Intensive Applications Reminders Homework: assigned chapters from design book Reading

More information

SAP BusinessObjects. Erick Carlson SAP Solution Architect N.A. SAP on Oracle Team

SAP BusinessObjects. Erick Carlson SAP Solution Architect N.A. SAP on Oracle Team SAP BusinessObjects Connecting to the Oracle Autonomous Data Warehouse Cloud Service using an Oracle Wallet August 2018 Erick Carlson SAP Solution Architect N.A. SAP on Oracle Team erick.carlson@oracle.com

More information

After completing this unit, you should be able to: Use inner joins to retrieve data from more than one table

After completing this unit, you should be able to: Use inner joins to retrieve data from more than one table JOIN Objectives After completing this unit, you should be able to: Use inner joins to retrieve data from more than one table Use outer joins complementing inner joins Sample Tables for Unit EMPLOYEE EMPNO

More information

Longitude and time - 1 hour

Longitude and time - 1 hour Autumn Term 2 introductory lessons Map of the world - What is Geog? Geog Detectives 2 hours one for test Map skills - 7 hours basic skills Latitude and Seasons - To cover grid references, compass directions,

More information

Introduction to Databases Fall-Winter 2010/11. Syllabus

Introduction to Databases Fall-Winter 2010/11. Syllabus Introduction to Databases Fall-Winter 2010/11 Syllabus Werner Nutt Syllabus Lecturer Werner Nutt, nutt@inf.unibz.it, Room POS 2.09 Office hours: Tuesday, 14:00 16:00 and by appointment (If you want to

More information

An Introduction to Structured Query Language

An Introduction to Structured Query Language An Introduction to Structured Query Language Grant Weddell Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2017 CS 348 (Intro to DB Mgmt) SQL

More information

An Introduction to Structured Query Language

An Introduction to Structured Query Language An Introduction to Structured Query Language Grant Weddell David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Spring 2012 CS 348 (Intro to DB

More information

An Introduction to Structured Query Language

An Introduction to Structured Query Language An Introduction to Structured Query Language Grant Weddell David R. Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Spring 2012 CS 348 (Intro to DB

More information

Assignment 6. This lab should be performed under the Oracle Linux VM provided in the course.

Assignment 6. This lab should be performed under the Oracle Linux VM provided in the course. Assignment 6 This assignment includes hands-on exercises in the Oracle VM. It has two Parts. Part 1 is SQL Injection Lab and Part 2 is Encryption Lab. Deliverables You will be submitting evidence that

More information

Oracle MOOC: SQL Fundamentals

Oracle MOOC: SQL Fundamentals Week 4 Homework for Lesson 4 Homework is your chance to put what you've learned in this lesson into practice. This homework is not "graded" and you are encouraged to write additional code beyond what is

More information

School of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018

School of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 School of Computing and Information Technology Session: Spring 2018 University of Wollongong Lecturer: Janusz R. Getta CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 THE QUESTIONS

More information

Hands-on GTFS. Omaha, NE October 29, U.S. Department of Transportation Federal Transit Administration

Hands-on GTFS. Omaha, NE October 29, U.S. Department of Transportation Federal Transit Administration Hands-on GTFS Omaha, NE October 29, 2017 Presenters & Let s meet you! Marcy Jaffe Technical Support for GTFS Builder Toolkit Available by phone/email Amelia Bostic Greenway Public Transportation No experience

More information

Lecture10: Data Manipulation in SQL, Advanced SQL queries

Lecture10: Data Manipulation in SQL, Advanced SQL queries IS220 / IS422 : Database Fundamentals : Data Manipulation in SQL, Advanced SQL queries Ref. Chapter5 Prepared by L. Nouf Almujally & Aisha AlArfaj College of Computer and Information Sciences - Information

More information

Advanced Databases. Lecture 4 - Query Optimization. Masood Niazi Torshiz Islamic Azad university- Mashhad Branch

Advanced Databases. Lecture 4 - Query Optimization. Masood Niazi Torshiz Islamic Azad university- Mashhad Branch Advanced Databases Lecture 4 - Query Optimization Masood Niazi Torshiz Islamic Azad university- Mashhad Branch www.mniazi.ir Query Optimization Introduction Transformation of Relational Expressions Catalog

More information

How to Apply MS17-10 to prevent WannaCrypt Attacks

How to Apply MS17-10 to prevent WannaCrypt Attacks How to Apply MS17-10 to prevent WannaCrypt Attacks Document date: 8.8.2017 This document describes the procedure how to apply the Microsoft patches to R&S devices running Windows XP or Win7 operating systems

More information

USER GUIDE Azure Factory

USER GUIDE Azure Factory 2011 USER GUIDE Azure Factory Contents Setting up a Windows Azure Account... 2 Setting up your Server... 3 Creating a Database... 4 Manage the Database... 6 Generating the Azure Factory Project... 9 Publishing

More information

MySQL Views & Comparing SQL to NoSQL

MySQL Views & Comparing SQL to NoSQL CMSC 461, Database Management Systems Fall 2014 MySQL Views & Comparing SQL to NoSQL These slides are based on Database System Concepts book and slides, 6 th edition, and the 2009/2012 CMSC 461 slides

More information

CS44800 Practice Project SQL Spring 2019

CS44800 Practice Project SQL Spring 2019 CS44800 Practice Project SQL Spring 2019 Due: No Grade Total Points: 30 points Learning Objectives 1. Be familiar with the basic SQL syntax for DML. 2. Use a declarative programming model (SQL) to retrieve

More information

Data Rules. rules.ppdm.org. Dave Fisher & Madelyn Bell BUSINESS RULES WORKSHOP. March Business rules workshop Nov 2013

Data Rules. rules.ppdm.org. Dave Fisher & Madelyn Bell BUSINESS RULES WORKSHOP. March Business rules workshop Nov 2013 BUSINESS RULES WORKSHOP Data Rules Dave Fisher & Madelyn Bell rules.ppdm.org 1 March 2014 AGENDA Workshop objectives Definitions what is a data rule? It only grows with your help It takes longer then anyone

More information

Série n 6 Bis : Ateliers SQL Data Modeler (Oracle)

Série n 6 Bis : Ateliers SQL Data Modeler (Oracle) Série n 6 Bis : Ateliers SQL Data Modeler (Oracle) Getting started with data Modeler Adding a Table to An Existing Database Purpose This tutorial shows you how to add a table to an existing database using

More information

CS430 Final March 14, 2005

CS430 Final March 14, 2005 Name: W#: CS430 Final March 14, 2005 Write your answers in the space provided. Use the back of the page if you need more space. Values of questions are as indicated. 1. (4 points) What are the four ACID

More information

How to Apply MS17-10 to prevent WannaCrypt Attacks

How to Apply MS17-10 to prevent WannaCrypt Attacks How to Apply MS17-10 to prevent WannaCrypt Attacks For Video Tester R&S VTC, R&S VTE, R&S VTS and Video Generator R&S DVSG. Document date: 2017-08-03 This document describes the procedure how to apply

More information

FIT3056 Secure and trusted software systems. Unit Guide. Semester 2, 2010

FIT3056 Secure and trusted software systems. Unit Guide. Semester 2, 2010 FIT3056 Secure and trusted software systems Unit Guide Semester 2, 2010 The information contained in this unit guide is correct at time of publication. The University has the right to change any of the

More information

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database: SQL Fundamentals I. Q&As: 292

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database: SQL Fundamentals I. Q&As: 292 Vendor: Oracle Exam Code: 1Z1-051 Exam Name: Oracle Database: SQL Fundamentals I Q&As: 292 QUESTION 1 Evaluate the SQL statement: TRUNCATE TABLE DEPT; Which three are true about the SQL statement? (Choose

More information

Analytics: Server Architect (Siebel 7.7)

Analytics: Server Architect (Siebel 7.7) Analytics: Server Architect (Siebel 7.7) Student Guide June 2005 Part # 10PO2-ASAS-07710 D44608GC10 Edition 1.0 D44917 Copyright 2005, 2006, Oracle. All rights reserved. Disclaimer This document contains

More information

DATACARD Firmware Update Instructions. Contents. Firmware Update Application for Open Card

DATACARD Firmware Update Instructions. Contents. Firmware Update Application for Open Card DATACARD Firmware Update Instructions Firmware Update Application for Open Card Contents Open Card Update Information What You Need Update the Printer Firmware Who Do I Call for Help? Trademark and Copyright

More information

VS2010 C# Programming - DB intro 1

VS2010 C# Programming - DB intro 1 VS2010 C# Programming - DB intro 1 Topics Database Relational - linked tables SQL ADO.NET objects Referencing Data Using the Wizard Displaying data 1 VS2010 C# Programming - DB intro 2 Database A collection

More information

Managing Your Database Using Oracle SQL Developer

Managing Your Database Using Oracle SQL Developer Page 1 of 54 Managing Your Database Using Oracle SQL Developer Purpose This tutorial introduces Oracle SQL Developer and shows you how to manage your database objects. Time to Complete Approximately 50

More information

School of Computing and Information Technology. Examination Paper Autumn Session 2017

School of Computing and Information Technology. Examination Paper Autumn Session 2017 School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn Session

More information

Database Assignment 2

Database Assignment 2 Database Assignment 2 Java Database Connection using the JDBC API March 13, 2008 1 Objectives Create and run a JDBC program using the client driver and Network Server. This assignment demonstrates the

More information

Retrieving Data from Multiple Tables

Retrieving Data from Multiple Tables Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 5 Retrieving Data from Multiple Tables Eng. Mohammed Alokshiya November 2, 2014 An JOIN clause

More information

Database Installation Using Scripts March Product Version 7.0 and above

Database Installation Using Scripts March Product Version 7.0 and above PNMsoft Knowledge Base Sequence Administrator Guides Database Installation Using Scripts March. 2014 Product Version 7.0 and above 2014 PNMsoft All Rights Reserved This document, including any supporting

More information

Symantec NetBackup OpsCenter Reporting Guide. Release 7.7

Symantec NetBackup OpsCenter Reporting Guide. Release 7.7 Symantec NetBackup OpsCenter Reporting Guide Release 7.7 Symantec NetBackup OpsCenter Reporting Guide The software described in this book is furnished under a license agreement and may be used only in

More information

Database charts. From tutorial files: Database charts. Contents

Database charts. From tutorial files: Database charts. Contents Database charts Another one from tutorial files. This time some basics about database charts which allow you to plot data from virtually any dataset with just a few clicks. From tutorial files: Database

More information

A subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select,

A subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select, Sub queries A subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select, Result of the inner query is passed to the main

More information

SQL Retrieving Data from Multiple Tables

SQL Retrieving Data from Multiple Tables The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Database Lab (ECOM 4113) Lab 5 SQL Retrieving Data from Multiple Tables Eng. Ibraheem Lubbad An SQL JOIN clause is used

More information

Database Management Systems,

Database Management Systems, Database Management Systems SQL Query Language (3) 1 Topics Aggregate Functions in Queries count sum max min avg Group by queries Set Operations in SQL Queries Views 2 Aggregate Functions Tables are collections

More information

Actian Hybrid Data Conference 2017 London

Actian Hybrid Data Conference 2017 London Actian Hybrid Data Conference 2017 London Disclaimer This document is for informational purposes only and is subject to change at any time without notice. The information in this document is proprietary

More information

IHS Engineering Workbench 1.3

IHS Engineering Workbench 1.3 IHS Engineering Workbench 1.3 Important enhancements and updates in the latest release of the IHS Markit solution for technical knowledge discovery and management Introducing expanded capabilities for

More information

WHAT IS SQL. Database query language, which can also: Define structure of data Modify data Specify security constraints

WHAT IS SQL. Database query language, which can also: Define structure of data Modify data Specify security constraints SQL KEREM GURBEY WHAT IS SQL Database query language, which can also: Define structure of data Modify data Specify security constraints DATA DEFINITION Data-definition language (DDL) provides commands

More information

ADF Code Corner How-to further filter detail queries based on a condition in the parent view using ADF BC. Abstract: twitter.

ADF Code Corner How-to further filter detail queries based on a condition in the parent view using ADF BC. Abstract: twitter. ADF Code Corner 109. How-to further filter detail queries based on a condition in the parent view using ADF BC Abstract: In Oracle ADF BC, parent child behavior between view objects is configured through

More information

Query Optimization. Chapter 13

Query Optimization. Chapter 13 Query Optimization Chapter 13 What we want to cover today Overview of query optimization Generating equivalent expressions Cost estimation 432/832 2 Chapter 13 Query Optimization OVERVIEW 432/832 3 Query

More information

CSE 530A. ER Model to Relational Schema. Washington University Fall 2013

CSE 530A. ER Model to Relational Schema. Washington University Fall 2013 CSE 530A ER Model to Relational Schema Washington University Fall 2013 Relational Model A relational database consists of a group of relations (a.k.a., tables) A relation (table) is a set of tuples (rows)

More information

Homework: Content extraction and search using Apache Tika Employment Postings Dataset contributed via DARPA XDATA Due: October 6, pm PT

Homework: Content extraction and search using Apache Tika Employment Postings Dataset contributed via DARPA XDATA Due: October 6, pm PT Homework: Content extraction and search using Apache Tika Employment Postings Dataset contributed via DARPA XDATA Due: October 6, 2014 12pm PT 1. Overview Figure 1: Map of Jobs (Colored by Country) In

More information

Tutorial 2: Relational Modelling

Tutorial 2: Relational Modelling Tutorial 2: Relational Modelling Informatics 1 Data & Analysis Week 4, Semester 2, 2014 2015 This worksheet has three parts: tutorial Questions, followed by some Examples and their Solutions. Before your

More information

Misc. Triggers Views Roles Sequences - Synonyms. Eng. Mohammed Alokshiya. Islamic University of Gaza. Faculty of Engineering

Misc. Triggers Views Roles Sequences - Synonyms. Eng. Mohammed Alokshiya. Islamic University of Gaza. Faculty of Engineering Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 9 Misc. Triggers Views Roles Sequences - Synonyms Eng. Mohammed Alokshiya December 7, 2014 Views

More information

Join Queries in Cognos Analytics Reporting

Join Queries in Cognos Analytics Reporting Join Queries in Cognos Analytics Reporting Business Intelligence Cross-Join Error A join is a relationship between a field in one query and a field of the same data type in another query. If a report includes

More information

The Evolu*on of a Rela*onal Database Layer over HBase

The Evolu*on of a Rela*onal Database Layer over HBase The Evolu*on of a Rela*onal Database Layer over HBase @ApachePhoenix h0p://phoenix.apache.org 2015-09- 29 Nick Dimiduk (@xefyr) h0p://n10k.com #apachebigdata V5 Agenda o What is Apache Phoenix? o State

More information

A Binary Tree SMART Migration Webinar. Designing an Active Directory Migration to Meet Real- World Requirements

A Binary Tree SMART Migration Webinar. Designing an Active Directory Migration to Meet Real- World Requirements A Binary Tree SMART Migration Webinar Designing an Active Directory Migration to Meet Real- World Requirements Our Speakers Gary Steere Microsoft Certified Master Microsoft MVP: Exchange Microsoft Certified

More information

SQL Server 2008 Tutorial 3: Database Creation

SQL Server 2008 Tutorial 3: Database Creation SQL Server 2008 Tutorial 3: Database Creation IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 DDL Action in SQL Server Creating and modifying structures using the graphical interface Table

More information

SECTION 4 USING QUERIES. What will I learn in this section?

SECTION 4 USING QUERIES. What will I learn in this section? SECTION 4 USING QUERIES What will I learn in this section? Select Queries Creating a Query Adding a Table to Query Adding Fields to Query Single Criteria Hiding column in a Query Adding Multiple Tables

More information

Data Modelling and Databases. Exercise Session 7: Integrity Constraints

Data Modelling and Databases. Exercise Session 7: Integrity Constraints Data Modelling and Databases Exercise Session 7: Integrity Constraints 1 Database Design Textual Description Complete Design ER Diagram Relational Schema Conceptual Modeling Logical Modeling Physical Modeling

More information

Oracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version :

Oracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version : Oracle 1Z1-051 Oracle Database 11g SQL Fundamentals I Download Full Version : https://killexams.com/pass4sure/exam-detail/1z1-051 QUESTION: 238 You need to perform these tasks: - Create and assign a MANAGER

More information

School of Computing, Engineering and Information Sciences University of Northumbria. Set Operations

School of Computing, Engineering and Information Sciences University of Northumbria. Set Operations Set Operations Aim: To understand how to do the equivalent of the UNION, DIFFERENCE and INTERSECT set operations in SQL. Outline of Session: Do some example SQL queries to learn to differentiate between

More information

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018 School of Computing and Information Technology Session: Autumn 2018 University of Wollongong Lecturers: Janusz R. Getta Tianbing Xia CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

More information

Lecture 6 - More SQL

Lecture 6 - More SQL CMSC 461, Database Management Systems Spring 2018 Lecture 6 - More SQL These slides are based on Database System Concepts book and slides, 6, and the 2009/2012 CMSC 461 slides by Dr. Kalpakis Dr. Jennifer

More information