Wrangling All Your Data With Query Builder in JMP 13 Eric Hill Software Developer, JMP eric.hill@jmp.com
Copyright © 2016 SAS Institute Inc. All rights reserved. ? ? Copyright © 2016 SAS Institute Inc. All rights reserved.
Copyright © 2016 SAS Institute Inc. All rights reserved. Inner Join Matching rows only Copyright © 2016 SAS Institute Inc. All rights reserved.
Copyright © 2016 SAS Institute Inc. All rights reserved. Left Outer Join All rows from left table Matching rows from right table Copyright © 2016 SAS Institute Inc. All rights reserved.
Copyright © 2016 SAS Institute Inc. All rights reserved. X Right Outer Join Matching rows from left table All rows from right table Copyright © 2016 SAS Institute Inc. All rights reserved.
Copyright © 2016 SAS Institute Inc. All rights reserved. Full Outer Join All rows from both tables Copyright © 2016 SAS Institute Inc. All rights reserved.
Demo – Basic Joins Connect to database Primary vs. Secondary table Join Home Planet to Planet Change join type Preview Join Build Query Select Columns Run Query Save Query Copyright © 2012, SAS Institute Inc. All rights reserved.
Characters Films Copyright © 2012, SAS Institute Inc. All rights reserved.
Demo – Advanced Joins Characters plus Films Set join up wrong Preview Join Add Films a second time, change aliases Set join up correctly Copyright © 2012, SAS Institute Inc. All rights reserved.
NTSB Data events table aircraft table Occurrences table Copyright © 2012, SAS Institute Inc. All rights reserved.
Summarizing Data COUNT AVG MIN/MAX SUM STDDEV_SAMP, STDDEV_POP VAR_SAMP, VAR_POP Copyright © 2012, SAS Institute Inc. All rights reserved.
Demo – Summarizing Data Events data has primary key Aircraft table has compound primary key, foreign key reference to events Occurrences table has compound primary key, foreign key reference to Aircraft OccurrenceCodes – maps numeric codes to description Keys make joins easier Add columns Do Count aggregation See others are GROUP BY – Look at SQL code Order by the aggregated value Copyright © 2012, SAS Institute Inc. All rights reserved.
Demo - Filtering exercise4_predemo_start.jmpquery Date Format Modeling type – Affects the default filter and filter choices you have (besides being important in the imported data) Filter total seats highest injury Create a TreeMap Occurrence_Desc Phase_Desc Put the script in Post Query Script, runs every time Make the query prompted Copyright © 2012, SAS Institute Inc. All rights reserved.
Demo – Advanced Filtering Exercise4_part1.jmpquery Add date filter, make it a range, show Date Picker Add Occurrence_Desc Pick some Change to LIKE/NOT LIKE %engine%, %landing% Custom filter Type in what you want Custom SQL Query Copyright © 2012, SAS Institute Inc. All rights reserved.
JMP Query Builder (JMP 13) Big Class SAT Scores Query Builder SAT Scores JMP Query Builder Result BC_SSN Excel Import Wizard or QB BC_SSN Avg SAT Internet Open Avg SAT Copyright © 2012, SAS Institute Inc. All rights reserved.
Demo – Query Builder for JMP Tables Open Big Class Social Security Excel worksheet Copyright © 2012, SAS Institute Inc. All rights reserved.
Enjoy the conference! eric.hill@jmp.com https://community.jmp.com