CS/INFO 4154: Analytics-driven Game Design

Size: px
Start display at page:

Download "CS/INFO 4154: Analytics-driven Game Design"

Transcription

1 CS/INFO 4154: Analytics-driven Game Design Class 20: SQL

2 Final Course Deadlines We will not meet during the scheduled exam time Final report will be due at the end of exam time Cornell cannot delete exam from Student Center Final (Kongregate) Report due: Saturday, December 9th, NOON Final Peer Evaluations due: Monday, December 11th, 11:59pm

3 Mon Wed Fri 10/11 MySQL 10/13 Beta Playtesting 1 10/16 Beta Playtesting 2 10/18 Beta Postmortems 10/19: Midterm Peer Evaluations Due

4 Beta Postmortems Similar to Alpha postmortems Report something learned from analytics perfectly fine if not very insightful e.g. players clicked 5436 times!

5 Today Basic MySQL How the tables are implemented on GDIAC Open office hours

6 Today Basic MySQL How the tables are implemented on GDIAC Open office hours

7 SQL Structured Query Language a programming language designed to manage data stored in relational databases

8 SHOW TABLES Shows tables within current database mysql> SHOW TABLES; player_action_log player_pageload_log player_quest_log users rows in set (0.00 sec)

9 Sample table: actions player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8)

10 DESCRIBE Tells you the table schema Example: DESCRIBE actions; important Field Type Null Key Default Extra player_id int(11) YES NULL quest_id int(11) YES NULL level_id int(11) YES NULL time int(11) YES NULL detail varchar(255) YES NULL

11 SELECT The basic query SELECT <attributes> FROM <one or more tables>;

12 SELECT player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) SELECT player_id FROM actions; player_id

13 DISTINCT Filters results for unique values Can be used as a keyword: SELECT DISTINCT player_id FROM actions; Can also be used as a function: SELECT DISTINCT(player_id) FROM actions;

14 DISTINCT player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) SELECT DISTINCTplayer_id FROM actions; player_id 0 1

15 COUNT() Function that counts number of rows Usage: COUNT(<rows>) Example: SELECT COUNT(player_id) FROM actions;

16 COUNT() player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) SELECT COUNT(player_id) FROM actions; COUNT(player_id) 6

17 How do I? player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) How do I get the number of unique players? SELECT COUNT(DISTINCT(player_id)) FROM actions COUNT(DISTINCT(player_id)) 2

18 SELECT * SELECT * returns all rows Example: SELECT * FROM actions; player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8)

19 WHERE Specifies constraints Example: SELECT * FROM actions WHERE time>20;

20 WHERE player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) SELECT * FROM actions WHERE time>20 player_id quest_id action_id time detail (2, 1) (3, 8)

21 WHERE Specifies constraints Example: SELECT * FROM actions WHERE time>20; Can combine WHERE constraints with AND: SELECT * FROM actions WHERE time<15 AND player_id=0;

22 How do I? player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) Count # of actions with id=2? SELECT COUNT(*) FROM actions WHERE action_id=2;

23 How do I? player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) Count # of players who had an action with id=1? SELECT COUNT(DISTINCT(player_id)) FROM actions WHERE action_id=1;

24 How do I? player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) Count # of players who performed an action at (2,x)? Can t do this yet.

25 LIKE Specifies looser constraints: _ matches a single character % matches any number of characters Example: SELECT * FROM actions WHERE detail LIKE (2,_) ;

26 WHERE player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) SELECT * FROM actions WHERE detail LIKE (2,_) ; player_id quest_id action_id time detail (2, 2) (2, 4) (2, 1)

27 How do I? player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) Count # of players who performed an action in quest #1 at (x,8) SELECT COUNT(DISTINCT(player_id)) FROM actions WHERE quest_id=1 AND detail LIKE '(_,8)';

28 How do I actions players player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) player_id player_info 0 Windows 1 Linux Get all actions performed on Windows?

29 INNER JOIN Merges tables Example: SELECT * FROM actions INNER JOIN players ON players.player_id=actions.player_id;

30 actions player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) players player_id player_info 0 Windows 1 Linux SELECT * FROM actions INNER JOIN players ON players.player_id=actions.player_id; player_id quest_id action_id time detail player_id player_info (2, 2) 0 Windows (2, 4) 0 Windows (1, 3) 0 Windows (1, 1) 0 Windows (2, 1) 1 Linux (3, 8) 1 Linux

31 actions player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) players player_id player_info 0 Windows 1 Linux SELECT * FROM actions INNER JOIN players ON players.player_id=actions.player_id WHERE players.player_info= Windows ; player_id quest_id action_id time detail player_id player_info (2, 2) 0 Windows (2, 4) 0 Windows (1, 3) 0 Windows (1, 1) 0 Windows

32 actions player_id quest_id action_id time detail (2, 2) (2, 4) (1, 3) (1, 1) (2, 1) (3, 8) players player_id player_info 0 Windows 1 Linux Count the # of actions that happened on Linux at (2,x)? SELECT COUNT(*) FROM actions INNER JOIN players ON players.player_id=actions.player_id WHERE player_info='linux' AND detail LIKE '(2,_)'; Count the # of unique players that played on Windows and performed an action after time=15? SELECT COUNT(DISTINCT(players.player_id)) FROM actions INNER JOIN players ON players.player_id=actions.player_id WHERE player_info='windows' AND actions.time>15;

33 Today Basic MySQL How the tables are implemented on GDIAC Open office hours

34 Four tables Users Sessions users player_pageload_log Tasks Actions player_quest_log player_action_log

35 Users: users user_id user_info user ID (automatic) user details (if you provided them)

36 Sessions: player_pageload_log client_timestamp log_id user_id server_timestamp game_id version_id session_id when the client recorded the event overall ID; continually increments user ID (automatic) when the server recorded the event your game ID your version ID ID for this play session (automatic)

37 Tasks: player_quest_log log_quest_id quest_id log_quest_ts user_id game_id version_id dynamic_quest_id quest_detail session_seq_id session_id client_timestamp level_end_timestamp overall ID; continually increments ID for the task/level/quest when the server recorded the event user ID (automatic) your game ID your version ID unique ID for this specific quest instance quest details (if you provided them) which task in this session ID for this play session (automatic) when the client recorded the event when the client finished the task

38 Actions: player_action_log client_timestamp log_id game_id quest_id user_id action_id action_detail log_timestamp session_seq_id quest_seq_id when the client recorded the event overall ID; continually increments your game ID ID for this task/level/quest user ID (automatic) ID for this action action details (if you provided them) when the server recorded the event which action in this session which action in this task

39 Today Basic MySQL How the tables are implemented on GDIAC Open office hours

Administrivia Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications

Administrivia Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications Administrivia Carnegie Mellon Univ. Dept. of Computer Science 15-415/615 - DB Applications HW6 is due right now. HW7 is out today Phase 1: Wed Nov 9 th Phase 2: Mon Nov 28 th C. Faloutsos A. Pavlo Lecture#18:

More information

Mobile Application Programming: ios

Mobile Application Programming: ios Mobile Application Programming: ios CS4962 Fall 2014 Project 4 - Network MVC Battleship Due: 11:59PM Monday, Nov 17 Abstract Build a Model-View-Controller implementation of the game Battleship on Android.

More information

Administrivia Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications

Administrivia Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications Administrivia Carnegie Mellon Univ. Dept. of Computer Science 15-415/615 - DB Applications C. Faloutsos A. Pavlo Lecture#18: Physical Database Design HW6 is due right now. HW7 is out today Phase 1: Wed

More information

Create a simple database with MySQL

Create a simple database with MySQL Create a simple database with MySQL 1.Connect the MySQL server through MySQL Workbench You can achieve many database operations by typing the SQL langue into the Query panel, such as creating a database,

More information

Mobile Application Programming: Android

Mobile Application Programming: Android Mobile Application Programming: Android CS4530 Fall 2016 Project 4 - Networked Battleship Due: 11:59PM Monday, Nov 7th Abstract Extend your Model-View-Controller implementation of the game Battleship on

More information

Oracle 1Z MySQL 5.6 Developer.

Oracle 1Z MySQL 5.6 Developer. Oracle 1Z0-882 MySQL 5.6 Developer http://killexams.com/exam-detail/1z0-882 SELECT... WHERE DATEDIFF (dateline, 2013-01-01 ) = 0 C. Use numeric equivalents for comparing the two dates: SELECT...WHERE MOD(UNIX_TIMESTAMP

More information

Server Side Scripting Report

Server Side Scripting Report Server Side Scripting Report David Nelson 205CDE Developing the Modern Web Assignment 2 Student ID: 3622926 Computing BSc 29 th March, 2013 http://creative.coventry.ac.uk/~nelsond/ - Page 1 - Contents

More information

CS 186 Midterm, Spring 2003 Page 1

CS 186 Midterm, Spring 2003 Page 1 UNIVERSITY OF CALIFORNIA College of Engineering Department of EECS, Computer Science Division CS 186 Spring 2003 J. Hellerstein Midterm Midterm Exam: Introduction to Database Systems This exam has five

More information

Homework 3: Relational Database Design Theory (100 points)

Homework 3: Relational Database Design Theory (100 points) CS 122A: Introduction to Data Management Spring 2018 Homework 3: Relational Database Design Theory (100 points) Due Date: Wed, Apr 25 (5:00 PM) Submission All HW assignments should be turned in with a

More information

CLASS DISCUSSION AND NOTES

CLASS DISCUSSION AND NOTES Mon CLASS DISCUSSION AND NOTES October 2009 Tue Wed Thu Fri 19 20 21 22 23 AH-6; PBL & Project Peer Evaluations Chap. 7 SQL/DB Construction AH-6; PBL & Project Peer Evaluations Chap. 7 SQL/DB Construction

More information

Oracle Exam 1z0-882 Oracle Certified Professional, MySQL 5.6 Developer Version: 7.0 [ Total Questions: 100 ]

Oracle Exam 1z0-882 Oracle Certified Professional, MySQL 5.6 Developer Version: 7.0 [ Total Questions: 100 ] s@lm@n Oracle Exam 1z0-882 Oracle Certified Professional, MySQL 5.6 Developer Version: 7.0 [ Total Questions: 100 ] Oracle 1z0-882 : Practice Test Question No : 1 Consider the statements: Mysql> drop function

More information

Introduction to Data Management. Lecture 16 (SQL: There s STILL More...) It s time for another installment of...

Introduction to Data Management. Lecture 16 (SQL: There s STILL More...) It s time for another installment of... Introduction to Data Management Lecture 16 (SQL: There s STILL More...) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 It s time for another

More information

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus CSCI-UA:0060-02 Database Design & Web Implementation Professor Evan Sandhaus sandhaus@cs.nyu.edu evan@nytimes.com Lecture #16: JOIN, SELECT, UPDATE DELETE Database Design and Web Implementation Database

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL Course: 20761 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2016 Duration: 24 HRs. ABOUT THIS COURSE This course is designed to introduce

More information

This lab will introduce you to MySQL. Begin by logging into the class web server via SSH Secure Shell Client

This lab will introduce you to MySQL. Begin by logging into the class web server via SSH Secure Shell Client Lab 2.0 - MySQL CISC3140, Fall 2011 DUE: Oct. 6th (Part 1 only) Part 1 1. Getting started This lab will introduce you to MySQL. Begin by logging into the class web server via SSH Secure Shell Client host

More information

the gamedesigninitiative at cornell university Lecture 1 Course Overview

the gamedesigninitiative at cornell university Lecture 1 Course Overview Lecture 1 Course CS/INFO 4152: Advanced Topics Sequel to CS/INFO 3152 Prereq unless a non-cornell Meng (or exempt) Similar format and structure as Intro Game Design Covers topics not touched in Intro Game

More information

Querying Data with Transact SQL

Querying Data with Transact SQL Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including

More information

Databases (MariaDB/MySQL) CS401, Fall 2015

Databases (MariaDB/MySQL) CS401, Fall 2015 Databases (MariaDB/MySQL) CS401, Fall 2015 Database Basics Relational Database Method of structuring data as tables associated to each other by shared attributes. Tables (kind of like a Java class) have

More information

Chapter 4: SQL Basics

Chapter 4: SQL Basics Chapter 4: SQL Basics ALT_ENTER Will Maximize Window in Command Line Mode o SQL Basics Structured Query Language Used to create & extract data in a database environment SQL history Began as SEQUEL o Structured

More information

T-SQL Training: T-SQL for SQL Server for Developers

T-SQL Training: T-SQL for SQL Server for Developers Duration: 3 days T-SQL Training Overview T-SQL for SQL Server for Developers training teaches developers all the Transact-SQL skills they need to develop queries and views, and manipulate data in a SQL

More information

INF 315E Introduction to Databases School of Information Fall 2015

INF 315E Introduction to Databases School of Information Fall 2015 INF 315E Introduction to Databases School of Information Fall 2015 Class Hours: Tuesday & Thursday10:30 am-12:00 pm Instructor: Eunyoung Moon Email: eymoon@utexas.edu Course Description Almost every website

More information

Important Notes: For this course you must check the Regis Bookstore: for the most current online course material information.

Important Notes: For this course you must check the Regis Bookstore:   for the most current online course material information. Online Course Syllabus CS445 Database Management Important Notes: This document provides an overview of expectations for this online course and is subject to change prior to the term start. Changes may

More information

OKC MySQL Users Group

OKC MySQL Users Group OKC MySQL Users Group OKC MySQL Discuss topics about MySQL and related open source RDBMS Discuss complementary topics (big data, NoSQL, etc) Help to grow the local ecosystem through meetups and events

More information

Practice for Test 1 (not counted for credit, but to help you prepare) Time allowed: 1 hour 15 minutes

Practice for Test 1 (not counted for credit, but to help you prepare) Time allowed: 1 hour 15 minutes p.1 of 8 INFS 4240/6240 (Section A) Database Management System Fall 2018 Practice for Test 1 (not counted for credit, but to help you prepare) Time allowed: 1 hour 15 minutes Q.1(a) 15 15 Q.1(b) 10 10

More information

SQL Functionality SQL. Creating Relation Schemas. Creating Relation Schemas

SQL Functionality SQL. Creating Relation Schemas. Creating Relation Schemas SQL SQL Functionality stands for Structured Query Language sometimes pronounced sequel a very-high-level (declarative) language user specifies what is wanted, not how to find it number of standards original

More information

Instructor: Craig Duckett. Lecture 04: Thursday, April 5, Relationships

Instructor: Craig Duckett. Lecture 04: Thursday, April 5, Relationships Instructor: Craig Duckett Lecture 04: Thursday, April 5, 2018 Relationships 1 Assignment 1 is due NEXT LECTURE 5, Tuesday, April 10 th in StudentTracker by MIDNIGHT MID-TERM EXAM is LECTURE 10, Tuesday,

More information

DATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11

DATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11 DATABASE PERFORMANCE AND INDEXES CS121: Relational Databases Fall 2017 Lecture 11 Database Performance 2 Many situations where query performance needs to be improved e.g. as data size grows, query performance

More information

CS 327E Lecture 2. Shirley Cohen. January 27, 2016

CS 327E Lecture 2. Shirley Cohen. January 27, 2016 CS 327E Lecture 2 Shirley Cohen January 27, 2016 Agenda Announcements Homework for today Reading Quiz Concept Questions Homework for next time Announcements Lecture slides and notes will be posted on the

More information

Bases de Dades: introduction to SQL (indexes and transactions)

Bases de Dades: introduction to SQL (indexes and transactions) Bases de Dades: introduction to SQL (indexes and transactions) Andrew D. Bagdanov bagdanov@cvc.uab.es Departamento de Ciencias de la Computación Universidad Autónoma de Barcelona Fall, 2010 Questions from

More information

Creating the Data Layer

Creating the Data Layer Creating the Data Layer When interacting with any system it is always useful if it remembers all the settings and changes between visits. For example, Facebook has the details of your login and any conversations

More information

NULL. The special value NULL could mean: Unknown Unavailable Not Applicable

NULL. The special value NULL could mean: Unknown Unavailable Not Applicable Advanced SQL 1 / 23 NULL The special value NULL could mean: Unknown Unavailable Not Applicable 2 / 23 Three-Valued Logic - AND AND TRUE FALSE UNKNOWN TRUE TRUE FALSE UNKNOWN FALSE FALSE FALSE FALSE UNKNOWN

More information

Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications. Administrivia. Administrivia. Faloutsos/Pavlo CMU /615

Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications. Administrivia. Administrivia. Faloutsos/Pavlo CMU /615 Carnegie Mellon Univ. Dept. of Computer Science 15-415/615 - DB Applications C. Faloutsos A. Pavlo Lecture#14(b): Implementation of Relational Operations Administrivia HW4 is due today. HW5 is out. Faloutsos/Pavlo

More information

PostgreSQL Database and C++ Interface (and Midterm Topics) ECE 650 Systems Programming & Engineering Duke University, Spring 2018

PostgreSQL Database and C++ Interface (and Midterm Topics) ECE 650 Systems Programming & Engineering Duke University, Spring 2018 PostgreSQL Database and C++ Interface (and Midterm Topics) ECE 650 Systems Programming & Engineering Duke University, Spring 2018 PostgreSQL Also called Postgres Open source relational database system

More information

CS 564: DATABASE MANAGEMENT SYSTEMS

CS 564: DATABASE MANAGEMENT SYSTEMS Spring 2017 CS 564: DATABASE MANAGEMENT SYSTEMS 1/17/17 CS 564: Database Management Systems, Jignesh M. Patel 1 Teaching Staff Instructor: Jignesh Patel, Office Hours: Mon, Wed 9:15-10:30AM, CS 4357 Class:

More information

Exact Numeric Data Types

Exact Numeric Data Types SQL Server Notes for FYP SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while

More information

EE221 Databases Practicals Manual

EE221 Databases Practicals Manual EE221 Databases Practicals Manual Lab 1 An Introduction to SQL Lab 2 Database Creation and Querying using SQL Assignment Data Analysis, Database Design, Implementation and Relation Normalisation School

More information

Database Systems. phpmyadmin Tutorial

Database Systems. phpmyadmin Tutorial phpmyadmin Tutorial Please begin by logging into your Student Webspace. You will access the Student Webspace by logging into the Campus Common site. Go to the bottom of the page and click on the Go button

More information

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations Show Only certain columns and rows from the join of Table A with Table B The implementation of table operations

More information

CS/INFO 4154: Analytics-driven Game Design

CS/INFO 4154: Analytics-driven Game Design CS/INFO 4154: Analytics-driven Game Design Class 37: Polishing Some slides from: Kelvin Jin `16, TA (2015), worked on Thermo (2014) Brian Curless (University of Washington) Mon Wed Fri 11/20 THANKSGIVING

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

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating

More information

Your (printed!) Name: CS 1803 Exam 3. Grading TA / Section: Monday, Nov. 22th, 2010

Your (printed!) Name: CS 1803 Exam 3. Grading TA / Section: Monday, Nov. 22th, 2010 Your (printed!) Name: CS 1803 Exam 3 Grading TA / Section: Monday, Nov. 22th, 2010 INTEGRITY: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate

More information

MTAT Introduction to Databases

MTAT Introduction to Databases MTAT.03.105 Introduction to Databases Lecture #3 Data Types, Default values, Constraints Ljubov Jaanuska (ljubov.jaanuska@ut.ee) Lecture 1. Summary SQL stands for Structured Query Language SQL is a standard

More information

Database Systems CSE 414

Database Systems CSE 414 Database Systems CSE 414 Lecture 15-16: Basics of Data Storage and Indexes (Ch. 8.3-4, 14.1-1.7, & skim 14.2-3) 1 Announcements Midterm on Monday, November 6th, in class Allow 1 page of notes (both sides,

More information

The appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used.

The appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used. Name: Student Number: Instructions: Do all 9 questions. There is a total of 87 marks. The appendix contains information about the Classic Models database. Place your answers on the examination paper and

More information

Who, where, when. Database Management Systems (LIX022B05) Literature. Evaluation. Lab Sessions. About this course. After this course...

Who, where, when. Database Management Systems (LIX022B05) Literature. Evaluation. Lab Sessions. About this course. After this course... Who, where, when base Management Systems (LIX022B05) Instructor: Çağrı Çöltekin c.coltekin@rug.nl Information science/informatiekunde Fall 2012 Course bases (LIX022B05) 2012/13 Instructor Çağrı Çöltekin

More information

User Guide. Data Preparation R-1.1

User Guide. Data Preparation R-1.1 User Guide Data Preparation R-1.1 Contents 1. About this Guide... 4 1.1. Document History... 4 1.2. Overview... 4 1.3. Target Audience... 4 2. Introduction... 4 2.1. Introducing the Big Data BizViz Data

More information

Midterm Exam #2 (Version A) CS 122A Winter 2017

Midterm Exam #2 (Version A) CS 122A Winter 2017 NAME: SEAT NO.: STUDENT ID: Midterm Exam #2 (Version A) CS 122A Winter 2017 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 50 minutes; be sure

More information

What s a database anyway?

What s a database anyway? Lecture 1 Databases TDA357/DIT620 Pablo Picazo pablop@chalmers.se What s a database anyway? Structured Persistant Changable Digital A database is True to integrity constraints DBMS Database == Data collection

More information

Using MySQL on the Winthrop Linux Systems

Using MySQL on the Winthrop Linux Systems Using MySQL on the Winthrop Linux Systems by Dr. Kent Foster adapted for CSCI 297 Scripting Languages by Dr. Dannelly updated March 2017 I. Creating your MySQL password: Your mysql account username has

More information

August/September 2008

August/September 2008 CLASS DISCUSSION AND NOTES August/September 2008 Mon Tue Wed Thu Fri 25 26 27 28 29 Chap. 2 2. Intro. to SQL Sept. 1 2 3 4 5 2B-TPSW, PPR1/Project Team Roles Chap. 3 Rel. 3. Model/ Normalization I. GETTING

More information

This lecture. Basic Syntax

This lecture. Basic Syntax This lecture Databases - Database Definition This lecture covers the process of implementing an ER diagram as an actual relational database. This involves converting the various entity sets and relationship

More information

Introduction to Database Systems CSE 344

Introduction to Database Systems CSE 344 Introduction to Database Systems CSE 344 Lecture 6: Basic Query Evaluation and Indexes 1 Announcements Webquiz 2 is due on Tuesday (01/21) Homework 2 is posted, due week from Monday (01/27) Today: query

More information

CS / Cloud Computing. Recitation 7 October 7 th and 9 th, 2014

CS / Cloud Computing. Recitation 7 October 7 th and 9 th, 2014 CS15-319 / 15-619 Cloud Computing Recitation 7 October 7 th and 9 th, 2014 15-619 Project Students enrolled in 15-619 Since 12 units, an extra project worth 3-units Project will be released this week Team

More information

Chapter 9: Working With Data

Chapter 9: Working With Data Chapter 9: Working With Data o Working with Data DML Component of SQL Used with much greater frequency than DDL Used to Add / Maintain / Delete / Query tables INSERT Used to enter new records o Data entry

More information

Midterm Exam #2 (Version B) CS 122A Spring 2018

Midterm Exam #2 (Version B) CS 122A Spring 2018 NAME: SEAT NO.: STUDENT ID: Midterm Exam #2 (Version B) CS 122A Spring 2018 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 50 minutes; be sure

More information

DATABASE MANAGEMENT SYSTEMS

DATABASE MANAGEMENT SYSTEMS DATABASE MANAGEMENT SYSTEMS Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Departments of IT and Computer Science 2015 2016 1 The ALTER TABLE

More information

Querying Microsoft SQL Server 2014

Querying Microsoft SQL Server 2014 Querying Microsoft SQL Server 2014 Course: 20461 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2014 Duration: 40 Hours ABOUT THIS COURSE This forty hours of instructor-led

More information

MIS2502: Review for Exam 2. Jing Gong

MIS2502: Review for Exam 2. Jing Gong MIS2502: Review for Exam 2 Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Overview Date/Time: Friday, October 30, 3:00 3:50 pm Place: Regular classroom (Alter Hall 232) Please arrive 5

More information

MTA Database Administrator Fundamentals Course

MTA Database Administrator Fundamentals Course MTA Database Administrator Fundamentals Course Session 1 Section A: Database Tables Tables Representing Data with Tables SQL Server Management Studio Section B: Database Relationships Flat File Databases

More information

CS143: Relational Model

CS143: Relational Model CS143: Relational Model Book Chapters (4th) Chapters 1.3-5, 3.1, 4.11 (5th) Chapters 1.3-7, 2.1, 3.1-2, 4.1 (6th) Chapters 1.3-6, 2.105, 3.1-2, 4.5 Things to Learn Data model Relational model Database

More information

1

1 1 3 4 6 7 8 9 Link to Storage Benchmarking Primer Running sysbench and preparing data Use the prepare option to generate the data. Experiments Run sysbench with different storage systems and instance

More information

Advanced SQL Tribal Data Workshop Joe Nowinski

Advanced SQL Tribal Data Workshop Joe Nowinski Advanced SQL 2018 Tribal Data Workshop Joe Nowinski The Plan Live demo 1:00 PM 3:30 PM Follow along on GoToMeeting Optional practice session 3:45 PM 5:00 PM Laptops available What is SQL? Structured Query

More information

User Guide. Data Preparation R-1.0

User Guide. Data Preparation R-1.0 User Guide Data Preparation R-1.0 Contents 1. About this Guide... 4 1.1. Document History... 4 1.2. Overview... 4 1.3. Target Audience... 4 2. Introduction... 4 2.1. Introducing the Big Data BizViz Data

More information

Interlude. Object Oriented Design

Interlude. Object Oriented Design Interlude Object Oriented Design Announcements for This Lecture This Week Today is an Interlude Nothing today is on exam Another Big Picture talk Relevant to Assignment 6 Review for exam posted New Review

More information

MATTHEW COLLINS H

MATTHEW COLLINS H TEESSIDE UNIVERSITY MODULE TITLE DATABASES AND SQL ASSIGNMENT TITLE CASE STUDY: SERVER DATABASE EXAMPLE MATTHEW COLLINS H8851143 Contents 1 CASE STUDY... 4 1.1 SCENARIO... 4 1.2 ADDITIONAL CONSIDERATIONS...

More information

Unit 1 - Chapter 4,5

Unit 1 - Chapter 4,5 Unit 1 - Chapter 4,5 CREATE DATABASE DatabaseName; SHOW DATABASES; USE DatabaseName; DROP DATABASE DatabaseName; CREATE TABLE table_name( column1 datatype, column2 datatype, column3 datatype,... columnn

More information

Instruction Create Table Sql Primary Key Clustered Asc

Instruction Create Table Sql Primary Key Clustered Asc Instruction Create Table Sql Primary Key Clustered Asc JobItems) ( (ItemId) UNIQUEIDENTIFIER NOT NULL, -- lots of other columns CONSTRAINT (JobItemsIndex) PRIMARY KEY CLUSTERED ((ItemId) ASC) ). SQL Server

More information

Vendor: Oracle. Exam Code: 1Z Exam Name: MySQL 5.0, 5.1 and 5.5 Certified Associate Exam. Version: Demo

Vendor: Oracle. Exam Code: 1Z Exam Name: MySQL 5.0, 5.1 and 5.5 Certified Associate Exam. Version: Demo Vendor: Oracle Exam Code: 1Z0-870 Exam Name: MySQL 5.0, 5.1 and 5.5 Certified Associate Exam Version: Demo QUESTION: 1 You work as a Database Administrator for. You have created a table named Student.

More information

Mobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE

Mobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE Mobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE COURSE TITLE MTA DATABASE ADMINISTRATOR FUNDAMENTALS COURSE DURATION 10 Hour(s) of Self-Paced Interactive Training COURSE OVERVIEW

More information

CS 200 Fall 2012 Assignment 8 SQL Due Monday November 10 by 4:00 pm

CS 200 Fall 2012 Assignment 8 SQL Due Monday November 10 by 4:00 pm CS 200 Fall 2012 Assignment 8 SQL Due Monday November 10 by 4:00 pm Read Notes 6, in particular Database Design and Watcom SQL User s Guide. Please follow these instructions very carefully to find the

More information

Advance Database Systems. Joining Concepts in Advanced SQL Lecture# 4

Advance Database Systems. Joining Concepts in Advanced SQL Lecture# 4 Advance Database Systems Joining Concepts in Advanced SQL Lecture# 4 Lecture 4: Joining Concepts in Advanced SQL Join Cross Join Inner Join Outer Join 3 Join 4 Join A SQL join clause combines records from

More information

MySQL. A practical introduction to database design

MySQL. A practical introduction to database design MySQL A practical introduction to database design Dr. Chris Tomlinson Bioinformatics Data Science Group, Room 126, Sir Alexander Fleming Building chris.tomlinson@imperial.ac.uk Database Classes 24/09/18

More information

FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL

FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL Creating Views with SQL... 1 1. Query Construction in SQL View:... 2 2. Use the QBE:... 5 3. Practice (use the QBE):... 6

More information

Relational model and basic SQL

Relational model and basic SQL Relational model and basic SQL Introduction to Database Design 2011, Lecture 2 Relational model and keys Basic SQL - Creating tables - Inserting rows - Retrieving information - Joins Overview 2 Relational

More information

Provider: MySQLAB Web page:

Provider: MySQLAB Web page: Provider: MySQLAB Web page: www.mysql.com Installation of MySQL. Installation of MySQL. Download the mysql-3.3.5-win.zip and mysql++-.7.--win3-vc++.zip files from the mysql.com site. Unzip mysql-3.3.5-win.zip

More information

3/3/2008. Announcements. A Table with a View (continued) Fields (Attributes) and Primary Keys. Video. Keys Primary & Foreign Primary/Foreign Key

3/3/2008. Announcements. A Table with a View (continued) Fields (Attributes) and Primary Keys. Video. Keys Primary & Foreign Primary/Foreign Key Announcements Quiz will cover chapter 16 in Fluency Nothing in QuickStart Read Chapter 17 for Wednesday Project 3 3A due Friday before 11pm 3B due Monday, March 17 before 11pm A Table with a View (continued)

More information

CS317 File and Database Systems

CS317 File and Database Systems CS317 File and Database Systems Lecture 2 DBMS DDL & DML Part-1 September 3, 2017 Sam Siewert MySQL on Linux (LAMP) Skills http://dilbert.com/strips/comic/2010-08-02/ DBMS DDL & DML Part-1 (Definition

More information

What is SQL? Toolkit for this guide. Learning SQL Using phpmyadmin

What is SQL? Toolkit for this guide. Learning SQL Using phpmyadmin http://www.php-editors.com/articles/sql_phpmyadmin.php 1 of 8 Members Login User Name: Article: Learning SQL using phpmyadmin Password: Remember Me? register now! Main Menu PHP Tools PHP Help Request PHP

More information

MySQL for Beginners Ed 3

MySQL for Beginners Ed 3 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database. Expert Oracle University instructors will

More information

Reference: W3School -

Reference: W3School - Language SQL SQL Adv Reference: W3School - http://www.w3schools.com/sql/default.asp http://www.tomjewett.com/dbdesign/dbdesign.php?page=recursive.php SQL Aliases SQL aliases are used to give a table, or

More information

Chapter 3. Introduction to relational databases and MySQL. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C3

Chapter 3. Introduction to relational databases and MySQL. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C3 1 Chapter 3 Introduction to relational databases and MySQL Slide 2 Objectives Applied 1. Use phpmyadmin to review the data and structure of the tables in a database, to import and run SQL scripts that

More information

Getting Started with SQL

Getting Started with SQL Getting Started with SQL TAMÁS BUDAVÁRI AUGUST 2016 Databases are easy: they consist of tables, which in turn have columns just like the files with which you are probably used to working. The difference

More information

origin destination duration New York London 415 Shanghai Paris 760 Istanbul Tokyo 700 New York Paris 435 Moscow Paris 245 Lima New York 455

origin destination duration New York London 415 Shanghai Paris 760 Istanbul Tokyo 700 New York Paris 435 Moscow Paris 245 Lima New York 455 CS50 Beyond Databases origin destination duration New York London 415 Shanghai Paris 760 Istanbul Tokyo 700 New York Paris 435 Moscow Paris 245 Lima New York 455 SQL SQL Databases MySQL PostgreSQL SQLite...

More information

Midterm Exam #2 (Version B) CS 122A Spring 2018

Midterm Exam #2 (Version B) CS 122A Spring 2018 NAME: SEAT NO.: STUDENT ID: Midterm Exam #2 (Version B) CS 122A Spring 2018 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 50 minutes; be sure

More information

Module 3 MySQL Database. Database Management System

Module 3 MySQL Database. Database Management System Module 3 MySQL Database Module 3 Contains 2 components Individual Assignment Group Assignment BOTH are due on Mon, Feb 19th Read the WIKI before attempting the lab Extensible Networking Platform 1 1 -

More information

CS 240 Fall 2015 Section 004. Alvin Chao, Professor

CS 240 Fall 2015 Section 004. Alvin Chao, Professor CS 240 Fall 2015 Section 004 Alvin Chao, Professor Today Course overview Data Structures / Algorithms Course policies The C language Motivation Computers are digital Data is stored in binary format (1's

More information

MySQL Workshop. Scott D. Anderson

MySQL Workshop. Scott D. Anderson MySQL Workshop Scott D. Anderson Workshop Plan Part 1: Simple Queries Part 2: Creating a database Part 3: Joining tables Part 4: complex queries: grouping aggregate functions subqueries sorting Reference:

More information

20761 Querying Data with Transact SQL

20761 Querying Data with Transact SQL Course Overview The main purpose of this course is to give students a good understanding of the Transact-SQL language which is used by all SQL Server-related disciplines; namely, Database Administration,

More information

CS 377 Database Systems. Li Xiong Department of Mathematics and Computer Science Emory University

CS 377 Database Systems. Li Xiong Department of Mathematics and Computer Science Emory University CS 377 Database Systems Database Programming in PHP Li Xiong Department of Mathematics and Computer Science Emory University Outline A Simple PHP Example Overview of Basic Features of PHP Overview of PHP

More information

Database Systems Fundamentals

Database Systems Fundamentals Database Systems Fundamentals Using PHP Language Arman Malekzade Amirkabir University of Technology (Tehran Polytechnic) Notice: The class is held under the supervision of Dr.Shiri github.com/arman-malekzade

More information

Goals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations

Goals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations Goals for Today Brief overview of course CS 133: Databases Course evaluations Fall 2018 Lec 27 12/13 Course and Final Review Prof. Beth Trushkowsky More details about the Final Exam Practice exercises

More information

Midterm Exam #2 (Version C) CS 122A Spring 2018

Midterm Exam #2 (Version C) CS 122A Spring 2018 NAME: SEAT NO.: STUDENT ID: Midterm Exam #2 (Version C) CS 122A Spring 2018 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 50 minutes; be sure

More information

DSC 201: Data Analysis & Visualization

DSC 201: Data Analysis & Visualization DSC 201: Data Analysis & Visualization Data Merging Dr. David Koop Data Wrangling Data wrangling: transform raw data to a more meaningful format that can be better analyzed Data cleaning: getting rid of

More information

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 6 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA

More information

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus Lecture #17: MySQL Gets Done

CSCI-UA: Database Design & Web Implementation. Professor Evan Sandhaus  Lecture #17: MySQL Gets Done CSCI-UA:0060-02 Database Design & Web Implementation Professor Evan Sandhaus sandhaus@cs.nyu.edu evan@nytimes.com Lecture #17: MySQL Gets Done Database Design and Web Implementation Database Design and

More information

Draft. Students Table. FName LName StudentID College Year. Justin Ennen Science Senior. Dan Bass Management Junior

Draft. Students Table. FName LName StudentID College Year. Justin Ennen Science Senior. Dan Bass Management Junior Chapter 6 Introduction to SQL 6.1 What is a SQL? When would I use it? SQL stands for Structured Query Language. It is a language used mainly for talking to database servers. It s main feature divisions

More information

Chapter 8: Working With Databases & Tables

Chapter 8: Working With Databases & Tables Chapter 8: Working With Databases & Tables o Working with Databases & Tables DDL Component of SQL Databases CREATE DATABASE class; o Represented as directories in MySQL s data storage area o Can t have

More information

Introduction to Data Management CSE 344

Introduction to Data Management CSE 344 Introduction to Data Management CSE 344 Lecture 16: Constraints CSE 344 - Winter 2014 1 Announcements WQ5 due tonight deadline extended only for this WQ HW4 due tomorrow HW 5 posted, due next Thursday

More information

Scheduling. Scheduling Tasks At Creation Time CHAPTER

Scheduling. Scheduling Tasks At Creation Time CHAPTER CHAPTER 13 This chapter explains the scheduling choices available when creating tasks and when scheduling tasks that have already been created. Tasks At Creation Time The tasks that have the scheduling

More information