INTRODUCTION TO JOINS IN TABLEAU
|
|
|
- Eleanore Baldwin
- 9 years ago
- Views:
Transcription
1 INTRODUCTION TO JOINS IN TABLEAU
2 Join Requirements 1. Join Type Determines which rows are selected Inner Left/Right Full 2. Join Clause Determines how rows from different tables are combined Variables from both tables that are the same
3 Join Types Inner Left (Right) Full Data has to be in BOTH tables Data has to be in LEFT (1 st ) table. Data in EITHER table. Right joins are just the opposite of Left joins, but more confusing they are not recommended. In other contexts, you may see Full, Left, and Right joins referred to as Outer joins. Thus, a Left Outer join is exactly the same as a Left join (same for Full and Right).
4 Join Clause Correct joins usually revolve around the Unique Row Key What combination of fields determines a UNIQUE row The variables that are the same in both tables Usually, variables have the same names, but this is not required Usually the Inner Join of the Unique Row Keys ID s are preferred over names when possible Examples (the unique row key for ENROLLMENT): STUDENT_ID ACADEMIC_YEAR ACADEMIC_TERM_ID CLASS_ID SECTION_ID
5 Toy Example Table A STUDENT_ID CLASS A UK 101 A MA 109 B UK 101 B CHE 105 B CIS 110 C WRD 110 Table B STUDENT_ID MAJOR A Business B Kinesiology D Nursing Join on STUDENT_ID Left Inner Full STUDENT_ID CLASS MAJOR A UK 101 Business A MA 109 Business B UK 101 Kinesiology B CHE 105 Kinesiology B CIS 110 Kinesiology C WRD STUDENT_ID CLASS MAJOR A UK 101 Business A MA 109 Business B UK 101 Kinesiology B CHE 105 Kinesiology B CIS 110 Kinesiology STUDENT_ID CLASS MAJOR A UK 101 Business A MA 109 Business B UK 101 Kinesiology B CHE 105 Kinesiology B CIS 110 Kinesiology C WRD D - Nursing
6 Toy Example 2 Keys Table A STUDENT_ID TERM CLASS A Fall UK 101 A Spring MA 109 B Fall UK 101 B Fall CHE 105 B Spring CIS 110 C Spring WRD 110 Table B STUDENT_ID TERM MAJOR A Fall Business A Spring Business B Fall Kinesiology B Spring Biology D Fall Nursing Left Join on STUDENT_ID and TERM STUDENT_ID TERM CLASS MAJOR A Fall UK 101 Business A Spring MA 109 Business B Fall UK 101 Kinesiology B Fall CHE 105 Kinesiology B Spring CIS 110 Biology C Spring WRD Left Join on STUDENT_ID only STUDENT_ID A.TERM CLASS B.TERM MAJOR A Fall UK 101 Fall Business A Fall UK 101 Spring Business A Spring MA 109 Fall Business A Spring MA 109 Spring Business B Fall UK 101 Fall Kinesiology B Fall UK 101 Spring Biology B Fall CHE 105 Fall Kinesiology B Fall CHE 105 Spring Biology B Spring CIS 110 Fall Kinesiology B Spring CIS 110 Spring Biology C Spring WRD
7 Basic Rules of Thumb Start with table that most closely matches the population you need ENROLLMENT has one row for every class in which student is enrolled RETENTION includes some students NOT found in ENROLLMENT or other tables DEMOGRAPHICS includes an even larger set of students students Left join other tables onto this driver table Many of our STUDENT tables are designed so that the difference between Full/Left/Inner join is minimal E.g., Every student in STATS_PER_TERM is also in ENROLLMENT and vice versa
8 Unique Row Keys DEMOGRAPHICS STUDENT_ID STATS_PER_TERM STUDENT_ID, ACADEMIC_YEAR, ACADEMIC_TERM_ID, DEGREE_PROGRAM_TYPE ENROLLMENT STUDENT_ID, ACADEMIC_YEAR, ACADEMIC_TERM_ID, CLASS_ID, SECTION_ID RETENTION STUDENT_ID, ACADEMIC_YEAR, ACADEMIC_TERM_ID, COHORT_TYPE, (COHORT_GROUP) COURSE_DETAILS COURSE_ID, SECTION_ID, ACADEMIC_YEAR, ACADEMIC_TERM_ID
9 ENROLLMENT_STATS_PER_TERM_ DEMOGRAPHICS
10 MY_LISTS with RETENTION STUDENT_ID RETENTION_DATA NAME A List1 A List2 A List3 A List4 MY_LISTS.RESULT is the same as RETENTION.STUDENT_ID Returns the RETENTION data for each NAME-RESULT combo If a STUDENT_ID (RESULT) is in 4 lists (NAME), the RETENTION info will be joined to each of the 4 lists Here, a Left or Inner join should give you the same result Stick with Left for consistency. Works similarly with other tables (besides RETENTION)
11 BAD Examples Do NOT just use the Tableau default! RETENTION Left join to ENROLLMENT on STUDENT_ID Will return a row for every class student has taken for every term in RETENTION table Row multiplication! Put ACADEMIC_YEAR and ACADEMIC_TERM_ID in join clause! ENROLLMENT Left join to COURSE_DETAILS on ACADEMIC_YEAR, ACADEMIC_TERM, CLASS_ID SECTION_ID is also required, since classes have multiple sections in a term.
The join operation allows you to combine related rows of data found in two tables into a single result set.
(Web) Application Development With Ian Week 3 SQL with Multiple Tables Join The join operation allows you to combine related rows of data found in two tables into a single result set. It works similarly
Chapter 9 Joining Data from Multiple Tables. Oracle 10g: SQL
Chapter 9 Joining Data from Multiple Tables Oracle 10g: SQL Objectives Identify a Cartesian join Create an equality join using the WHERE clause Create an equality join using the JOIN keyword Create a non-equality
CPS352 Database Systems: Design Project
CPS352 Database Systems: Design Project Purpose: Due: To give you experience with designing and implementing a database to model a real domain Various milestones due as shown in the syllabus Requirements
Converting Dimensions to Measures & Changing Data Types
1 Converting Dimensions to Measures & Changing Data Types When connecting to a data source, Tableau takes a best guess at the type of data contained in each column of your database. Tableau will assign
Define terms Write single and multiple table SQL queries Write noncorrelated and correlated subqueries Define and use three types of joins
Chapter 7 Advanced SQL 1 Define terms Objectives Write single and multiple table SQL queries Write noncorrelated and correlated subqueries Define and use three types of joins 2 Nested Queries (Subqueries)
PSU 2012. SQL: Introduction. SQL: Introduction. Relational Databases. Activity 1 Examining Tables and Diagrams
PSU 2012 SQL: Introduction SQL: Introduction The PowerSchool database contains data that you access through a web page interface. The interface is easy to use, but sometimes you need more flexibility.
Lab # 5. Retreiving Data from Multiple Tables. Eng. Alaa O Shama
The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 5 Retreiving Data from Multiple Tables Eng. Alaa O Shama November, 2015 Objectives:
Cashless Prepaid Card Systems Vending Systems for Prisons Biometrics Time & Attendance Kiosks Custom Technology Solutions
Cashless Prepaid Card Systems Vending Systems for Prisons Biometrics Time & Attendance Kiosks Custom Technology Solutions Classroom Attendance Reporting Via Fingerprint iclock 2500 Large 8-inch screen
Understanding the Database Design Process
67232976x_ch15.qxd 4/1/8 4:3 PM Page 1 15 Understanding the Database Design Process In this chapter, you ll learn the thought processes behind designing a relational database. After this theory-focused
Clever + DreamBox SFTP Instructions
Clever + DreamBox SFTP Instructions 1. Introduction Clever is a service for transferring school information in a secure manner from a school database to applications. This document explains how to use
Using DATA Step MERGE and PROC SQL JOIN to Combine SAS Datasets Dalia C. Kahane, Westat, Rockville, MD
Using DATA Step MERGE and PROC SQL JOIN to Combine SAS Datasets Dalia C. Kahane, Westat, Rockville, MD ABSTRACT This paper demonstrates important features of combining datasets in SAS. The facility to
Solving the Rubik's Revenge (4x4x4) Home Pre-Solution Stuff Step 1 Step 2 Step 3 Solution Moves Lists
Solving your Rubik's Revenge (4x4x4) 07/16/2007 12:59 AM Solving the Rubik's Revenge (4x4x4) Home Pre-Solution Stuff Step 1 Step 2 Step 3 Solution Moves Lists Turn this... Into THIS! To solve the Rubik's
FERSOFT Software Project Management Plan Version 1.0 OBTRS ONLINE BUS TICKET RESERVATION SYSTEM
OBTRS ONLINE BUS TICKET RESERVATION SYSTEM Preface The document contains the Software Project Management Plan of ONLINE BUS TICKET RESERVATION SYSTEM (OBTRS), which can be used for the all of the internet
Advantage Web Services Overview
Advantage Web Services Overview Note: This document is intended for non-technical users and administrators as a high level introduction to Web Services and a general reference. Developers should consult
Exercise 1: Relational Model
Exercise 1: Relational Model 1. Consider the relational database of next relational schema with 3 relations. What are the best possible primary keys in each relation? employ(person_name, street, city)
ESS Personal Information Direct Deposit/Bank Information
Employee Self-Service (ESS) Personal Information Direct Deposit/Bank Information Page 1 of 10 ESS Personal Information Direct Deposit/Bank Information 1. Direct Deposit/Bank Information Allows employees
Eclipse User Guide. 2010 Candidate, Vacancy and Client Contact Matching. Candidate, Vacancy and Client Contact Matching
Candidate, Vacancy and Client Contact Matching Page 1 Last Revised: January 2010 Candidate, Vacancy and Client Contact Matching Features and Related Topics: 1 Candidate and Vacancy Matching:...3 2 Candidate
Common Application Supplement
Common Application Supplement Full legal name / / LAST OR FAMILY FIRST MIDDLE SUFFIX (III, JR.) DATE OF BIRTH First-Year Applicants: Please select a school or program below. If interested in the McIntire
Join Example. Join Example Cart Prod. www.comp-soln.com 2006 Comprehensive Consulting Solutions, Inc.All rights reserved.
Join Example S04.5 Join Example Cart Prod S04.6 Previous joins are equijoins (=) Other operators can be used e.g. List all my employees older than their manager SELECT emp.name FROM employee emp, manager
MAKING PAYMENTS ONLINE. ELECTRONIC CHECKING (ACH) PAYMENTS PINLESS ATM DEBIT CARD PAYMENTS CREDIT CARD(only for Deposit Payments)
MAKING PAYMENTS ONLINE ELECTRONIC CHECKING (ACH) PAYMENTS PINLESS ATM DEBIT CARD PAYMENTS CREDIT CARD(only for Deposit Payments) On the Hofstra home page (www.hofstra.edu) click (myhofstra) to log onto
Answers to the Try It Yourself Sections
APPENDIX D Answers to the Try It Yourself Sections Chapter 1, PL/SQL Concepts 1) To calculate the area of a circle, you must square the circle s radius and then multiply it by π. Write a program that calculates
Credit Risk Migration Analysis Focused on Farm Business Characteristics and Business Cycles
Credit Risk Migration Analysis Focused on Farm Business Characteristics and Business Cycles Sangjeong Nam, Ani L. Katchova Selected Paper prepared for presentation at the American Agricultural Economics
1 Structured Query Language: Again. 2 Joining Tables
1 Structured Query Language: Again So far we ve only seen the basic features of SQL. More often than not, you can get away with just using the basic SELECT, INSERT, UPDATE, or DELETE statements. Sometimes
The 2010 British Informatics Olympiad
Time allowed: 3 hours The 2010 British Informatics Olympiad Instructions You should write a program for part (a) of each question, and produce written answers to the remaining parts. Programs may be used
CIS 2010 Individual Database Assignment Detailed Instructions
CIS 200 Individual Database Assignment Detailed Instructions Section - Database Design Hershey College is a small liberal arts college in Hershey, Pennsylvania. Because student enrollment at Hershey College
Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP
Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP Consolidate Data in Multiple Worksheets Example data is saved under Consolidation.xlsx workbook under ProductA through ProductD
Question 1. Relational Data Model [17 marks] Question 2. SQL and Relational Algebra [31 marks]
EXAMINATIONS 2005 MID-YEAR COMP 302 Database Systems Time allowed: Instructions: 3 Hours Answer all questions. Make sure that your answers are clear and to the point. Write your answers in the spaces provided.
Introduction to SQL C H A P T E R3. Exercises
C H A P T E R3 Introduction to SQL Exercises 3.1 Write the following queries in SQL, using the university schema. (We suggest you actually run these queries on a database, using the sample data that we
Improving Retention and On-Time Graduation:
Improving Retention and On-Time Graduation: Using Proactive Advising and Tracking Tools to Redirect Exploratory Students Janie Valdés, Charlie Andrews, Vanessa Mériné Florida International University NACADA
Gear Trains. Introduction:
Gear Trains Introduction: Sometimes, two or more gears are made to mesh with each other to transmit power from one shaft to another. Such a combination is called gear train or train of toothed wheels.
Analyse von großen Datensätzen in den Lebenswissenschaften (192217)
Analyse von großen Datensätzen in den Lebenswissenschaften (192217) Christof Schütte & Tim Conrad Session 7 Overview Scale it up! Flink @ Compute Cluster Table API / SQL Start of project Next week: For
COGNOS KARATE BELT SESSION III CREATING SLOTS
COGNOS KARATE BELT SESSION III CREATING SLOTS DIY SLOTS Purpose: This document explains the process for creating indicators as a way to slot information into one row from data that would normally be in
HOW TO CREATE A SECONDARY CLAIM
HOW TO CREATE A SECONDARY CLAIM Secondary claims are accepted for those payers that are indicated on our Payer List by a Y in the column for secondary s (the column header is SEC ). In some instances,
Examination of Four-Year Baccalaureate Completion Rates at Purdue University. April 2011. Enrollment Management Analysis and Reporting
Examination of Four-Year Baccalaureate Completion Rates at Purdue University April 2011 Enrollment Management Analysis and Reporting Student Analytical Research 0 Executive Summary Since 2000 the four-year
Math 35 Section 43376 Spring 2014. Class meetings: 6 Saturdays 9:00AM-11:30AM (on the following dates: 2/22, 3/8, 3/29, 5/3, 5/24, 6/7)
Math 35 Section 43376 Spring 2014 Class meetings: 6 Saturdays 9:00AM-11:30AM (on the following dates: 2/22, 3/8, 3/29, 5/3, 5/24, 6/7) Instructor: Kathy Nabours Office: MTSC 133 Email: [email protected]
How to access Administration Page for an End-of-Grade or End-of-Course Assessment
NC Education Student Enrollment Guide There is Enrolled Students Page for each online assessment at a school (e.g., Demo High Biology Spring 2015) located within NC Education. Schools are expected to verify
D B M G Data Base and Data Mining Group of Politecnico di Torino
Politecnico di Torino Database Management System Oracle Hints Data Base and Data Mining Group of Politecnico di Torino Tania Cerquitelli Computer Engineering, 2014-2015, slides by Tania Cerquitelli and
Passion Parties PassionNet Order Payment Options
Passion Parties PassionNet Order Payment Options Passion Parties is pleased to offer the flexibility several payment options when placing orders through the PassionNet. You may apply any of the following
Recommended Full-Time MPH Course Sequence For Those Enrolled as Online Students starting in fall (or summer) Year 1 (22 credits) Fall 1 (10 credits)
Recommended Full-Time MPH Course Sequence For Those Enrolled as Online Students starting in fall (or summer) Year 1 (22 credits) Fall 1 (10 credits) PHHE 601: Introduction to Health Systems in the United
7 Steps to Successful Data Blending for Excel
COOKBOOK SERIES 7 Steps to Successful Data Blending for Excel What is Data Blending? The evolution of self-service analytics is upon us. What started out as a means to an end for a data analyst who dealt
Blue Cross Blue Shield of Michigan and Blue Care Network
Blue Cross Blue Shield of Michigan and Blue Care Network Provider Enrollment and Change Self-Service User Guide January 2011 Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit
WEB-BASED STUDENT MANAGEMENT SYSTEM USING RFID
UNIVERSITY OF BORDEAUX 1 FINAL REPORT MASTER OF SOFTWARE ENGINEERING (2011 2013) WEB-BASED STUDENT MANAGEMENT SYSTEM USING RFID Author LE Huong Sao Mai Supervisor LE Dinh Viet Hai December, 2013. Acknowledgement
To access assessments, click the Assessments icon to be directed to the Find Assessments page.
About Assessments The Assessments section stores, displays, and reports summary and assessment data for test scores, proficiency levels, and results from state, local. and custom created tests. Assessments
Use Find & Replace Commands under Home tab to search and replace data.
Microsoft Access 2: Managing Data in Tables and Creating Relationships You have created tables in an Access database. Data in Access tables can be added, deleted, and updated to be current (practiced in
New Participant Digital Certificate Enrollment Procedure
New Participant Digital Certificate Enrollment Procedure Now that your account has been setup in the ETS system, you need to access it. As this is a secure site, a digital certificate will be required
Aeries API Documentation (Application Programming Interface) September 9, 2015
Aeries API Documentation (Application Programming Interface) September 9, 2015 The Aeries API is a web-based, REST API system. Currently, only Gradebook Scores are updatable through the API although future
EMPLOYEE MANUAL. ESS 4.1.4.2 Document Version 1.0
EMPLOYEE MANUAL ESS 4.1.4.2 Document Version 1.0 TABLE OF CONTENTS 1 ESS PRE REQUISITES... 4 2 INTRODUCTION... 5 2.1 What is ESS?... 5 3 LOGGING ONTO ESS... 6 3.1 Employee Login... 6 4 Using ESS... 7 4.1
SQL Access to OpenEdge Apps
SQL Access to OpenEdge Apps Building a highly performant, embeddable, custom ODBC, JDBC, ADO.NET or OLE.DB driver with OpenAccess. Laurent KIEFFER Solutions Engineer 23 Janvier 2014 OpenAccess in Progress
QaTraq Pro Scripts Manual - Professional Test Scripts Module for QaTraq. QaTraq Pro Scripts. Professional Test Scripts Module for QaTraq
QaTraq Pro Scripts Professional Test Scripts Module for QaTraq QaTraq Professional Modules QaTraq Professional Modules are a range of plug in modules designed to give you even more visibility and control
Step 1. Creating a new project
QSEE-SuperLite Entity Relationship Diagram Tutorial Within this tutorial we are going to use an entity relationship diagram to model a simple course management system for a college. This system is designed
RN to BSN Interest Survey
RN to BSN Interest Survey The Institute of Medicine and Future of Nursing reports have a target goal of 80% of the RN workforce prepared at the BSN or higher level by 2020. Bellin Health and Bellin College
Everything you need to know
Everything you need to know Life as a contractor may involve some tough decisions. Choosing a fantastic, reliable and personal umbrella company shouldn t be one of them. Employers National Insurance A
How to Engage and Retain Customers
How to Engage and Retain Customers New Rules for Healthcare Payers Clay Davis Healthcare Program Manager About Jacada Founded in 1990 Leading global provider of customer experience management solutions
Graduate School Student Funding (GSSF) Web Application Manual
Graduate School Student Funding (GSSF) Web Application Manual O V E R V I E W The GSSF Web Application is the building tool for the Graduate School s Funding Report. The Funding Report is a comprehensive
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25)
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Which three statements inserts a row into the table? A. INSERT INTO employees
Alaska Developmental Profile Web Site User s Guide
Alaska Developmental Profile Web Site User s Guide Please note that there is a troubleshooting guide at the end of this document. Choose the link at https://education.alaska.gov/tls/assessment/developmental.html
FEATURES. ! Sealing to IP68 (fully waterproof) Infra-red optical navigation technology
ERGONOMICAL IP68 TRACKBALL UNIT Waterproof trackball & scroll wheel IP68 50mm The Series desktop trackball is an extremely high specification device that incorporates the latest IP68 technology. The trackball
Database Development and Management with SQL
Chapter 4 Database Development and Management with SQL Objectives Get started with SQL Create database objects with SQL Manage database objects with SQL Control database object privileges with SQL 4.1
KR25i HIGH SPEED, HIGH CAPACITY REFRIGERATED CENTRIFUGE AUTO-LOCK. CQCS Traceability System VIDEOset Display!
KR25i HIGH SPEED, HIGH CAPACITY REFRIGERATED CENTRIFUGE AUTO-LOCK CQCS Traceability System VIDEOset Display! A CENTRIFUGE FOR ALL YOUR HIGH SPEED APPLICATIONS CLINICAL BIOLOGY, RESEARCH, INDUSTRY The KR25i
Health Workforce Data Collection: Findings from a Survey of States
Health Workforce Data Collection: Findings from a Survey of States Jean Moore, DrPH David Armstrong, PhD Health Workforce Technical Assistance Center School of Public Health University at Albany, SUNY
Microsoft Office 2010
Access Tutorial 1 Creating a Database Microsoft Office 2010 Objectives Learn basic database concepts and terms Explore the Microsoft Access window and Backstage view Create a blank database Create and
A simple guide to using the HumaPen Luxura HD. If you need help with your Pen, call the. HumaPen Luxura HD Help Line: 0800 783 6764
A simple guide to using the HumaPen Luxura HD If you need help with your Pen, call the Introducing your new Half Unit Dose Insulin Delivery Device Pen Cap Rubber Seal Cartridge Holder Pen needle (available
Advanced Query for Query Developers
for Developers This is a training guide to step you through the advanced functions of in NUFinancials. is an ad-hoc reporting tool that allows you to retrieve data that is stored in the NUFinancials application.
SmartBen Life Event Instructions
SmartBen Life Event Instructions 1 A Life Event According to IRS rules, once you enroll in your benefits choices, your decisions remain in effect for the rest of the year. However, you can make certain
FINDING THE GOOD IN BAD DEBT BEST PRACTICES FOR TELECOM AND CABLE OPERATORS LAURENT BENSOUSSAN STEPHAN PICARD
FINDING THE GOOD IN BAD DEBT BEST PRACTICES FOR TELECOM AND CABLE OPERATORS LAURENT BENSOUSSAN STEPHAN PICARD Bad debt management is a key driver of financial performance for telecom and cable operators.
Overview. Table of Contents. SA Data Warehouse
Overview The goal of the Student Administration Data Warehouse (herein referred to as SADW) is to provide an easily accessible and easy to use reporting environment that can satisfy 80% of the daily reporting
Delaware County Community College Course Equivalency Guide
Delaware County Community College Course Equivalency Guide Important Notice: BIO 117, Human Anatomy and BIO 11, Human Physiology course will be offer: BIO 117 through Summer 200 only BIO 11 in Spring 2010
Security threats and network. Software firewall. Hardware firewall. Firewalls
Security threats and network As we have already discussed, many serious security threats come from the networks; Firewalls The firewalls implement hardware or software solutions based on the control of
Get to Know Golf! John Dunigan
Get to Know Golf! John Dunigan Get to Know Golf is an initiative designed to promote the understanding the laws that govern ball flight. This information will help golfers develop the most important skill
Titanium Schedule Client Import Guide
Titanium Schedule Client Import Guide February 23, 2012 Titanium Software, Inc. P.O. Box 980788 Houston, TX 77098 (281) 443-3544 www.titaniumschedule.com [email protected] The Client Import
NEWH NURSING CONSORTIUM ASSOCIATE DEGREE NURSING (RN) ADMISSIONS PROCEDURE FOR FALL 2011 QUALIFICATION DEADLINE FEBRUARY 1, 2011
ASSOCIATE DEGREE NURSING (RN) ADMISSIONS PROCEDURE FOR FALL 2011 QUALIFICATION DEADLINE FEBRUARY 1, 2011 Students are admitted to the NEWH Nursing Consortium in accordance with policies approved by the
MacBook and OS X Basics
1 MacBook and OS X Basics Users will learn basic care, features, icons, and gestures for the MacBook Air. Modified March 10, 2014 TRAINING DISTRIBUTION AND BASICS (ITC) Info and Care 11 MacBook Air Model
