SlideShare a Scribd company logo
Symmetric Aggregates
Look & Tell: NY
March 24, 2015
SQL Aggregates are Error Prone
● When computing SUM() and AVG() in SQL its easy to
make mistakes
● Adding a join can make computations incorrect
● Difficult to track down problems
● Leads to lots of separate queries.
SQL Queries Are Relate then Aggregate
● First: Relate and Filter (JOIN and WHERE clauses)
● Second: Aggregate (SUM and GROUP BY)
LookML Combines Relate and Aggregate
● Logically, LookML combines them so aggregates are
much more generalized.
● SUM and, AVERAGE work in any query, regardless of
relationship
So What?
● Radically simplifies model building (declare measures
in their views and they just work).
● Joins don’t cause incorrect results.
● Fantastic new analytical patterns are now possible.
● Reduce the number of explores (base_views)
Patterns
● New Analytic Ratios
● Revenue and expense in the same explore
● Attribute based on analysis
● Paired behavior (i.e., bought together)
● Sloppy joined dates for trends
Upgrading Your Model
● Declare your relationship types in your joins.
● Turn it on!
Questions?

More Related Content

PPTX
How to Build a Data-Driven Company: From Infrastructure to Insights
Looker
 
PPTX
Data Democracy: Hadoop + Redshift
Looker
 
PPT
Mule Fundamentals
Khasim Cise
 
PPTX
Mule java part-2
Ravinder Singh
 
PPT
Climate Change in the Media: Where have we been and where are we headed?
Mike Schäfer
 
PPTX
Mule soa
D.Rajesh Kumar
 
PPT
Mule Esb Fundamentals
mdfkhan625
 
PPTX
Mule java part-3
Ravinder Singh
 
How to Build a Data-Driven Company: From Infrastructure to Insights
Looker
 
Data Democracy: Hadoop + Redshift
Looker
 
Mule Fundamentals
Khasim Cise
 
Mule java part-2
Ravinder Singh
 
Climate Change in the Media: Where have we been and where are we headed?
Mike Schäfer
 
Mule soa
D.Rajesh Kumar
 
Mule Esb Fundamentals
mdfkhan625
 
Mule java part-3
Ravinder Singh
 

Viewers also liked (15)

PPTX
Mule AMQP Connector
Ankush Sharma
 
PPTX
Frank Bien Opening Keynote - Join 2016
Looker
 
PPTX
Mule Batch Filter
Ankush Sharma
 
PPT
Mule security - jaas
charan teja R
 
PPTX
Meet Looker 4
Looker
 
ODP
Fetch records from mysql using mule esb
AnilKumar Etagowni
 
PDF
From Question to Action
Janessa Lantz
 
PPTX
Dataiku - From Big Data To Machine Learning
Dataiku
 
PPTX
Wisdom of Crowds Webinar Deck
Looker
 
PPT
MULE-JAAS
D.Rajesh Kumar
 
PPTX
Rpc
eleksdev
 
PDF
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Looker
 
PDF
Dataiku - data driven nyc - april 2016 - the solitude of the data team m...
Dataiku
 
PPTX
Aspnet core
eleksdev
 
PPTX
Agile Analytics
Atif Shaikh
 
Mule AMQP Connector
Ankush Sharma
 
Frank Bien Opening Keynote - Join 2016
Looker
 
Mule Batch Filter
Ankush Sharma
 
Mule security - jaas
charan teja R
 
Meet Looker 4
Looker
 
Fetch records from mysql using mule esb
AnilKumar Etagowni
 
From Question to Action
Janessa Lantz
 
Dataiku - From Big Data To Machine Learning
Dataiku
 
Wisdom of Crowds Webinar Deck
Looker
 
MULE-JAAS
D.Rajesh Kumar
 
Power to the People: A Stack to Empower Every User to Make Data-Driven Decisions
Looker
 
Dataiku - data driven nyc - april 2016 - the solitude of the data team m...
Dataiku
 
Aspnet core
eleksdev
 
Agile Analytics
Atif Shaikh
 
Ad

Similar to Lloyd Tabb on Symmetric Aggregates (20)

PDF
Test_document_upload_SQL_minimum_fourteen
olgaz9
 
PPT
SQL Queries
Nilt1234
 
PDF
advance-sqaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal.pdf
traphuong2103
 
PPT
PHP mysql Aggregate functions
Mudasir Syed
 
PPTX
DBMS: Week 07 - Advanced SQL Queries in MySQL
RashidFaridChishti
 
PDF
FOUNDATION OF DATA SCIENCE SQL QUESTIONS
HITIKAJAIN4
 
PDF
Smarter Together - Bringing Relational Algebra, Powered by Apache Calcite, in...
Julian Hyde
 
PDF
Cubing and Metrics in SQL, oh my!
Julian Hyde
 
PPTX
database_set_operations_&_function.pptx
tanvirkhanfahim
 
PPTX
Unit 5 Introduction to Oracle and Sql.pptx
svasuki0708
 
PDF
Why you care about
 relational algebra (even though you didn’t know it)
Julian Hyde
 
PDF
Sql wksht-3
Mukesh Tekwani
 
PDF
SQL Queries .pdf
srinathpurushotham
 
PDF
CS121Lec05.pdf
georgejustymirobi1
 
PPTX
Oracle SQL - Grants, filters, groups and more
A Data Guru
 
PDF
Horizontal Aggregations in SQL to Prepare Data Sets for Data Mining Analysis
IOSR Journals
 
PDF
Question 2B
Stefanie Wong
 
PPTX
Case 9 and 10. SQL For Data Analysis 4.pptx
DilaTriarini1
 
PDF
Aggregation APi in Ibexa DXP by Adam Wójs
Jani Tarvainen
 
PDF
PostgreSQL, performance for queries with grouping
Alexey Bashtanov
 
Test_document_upload_SQL_minimum_fourteen
olgaz9
 
SQL Queries
Nilt1234
 
advance-sqaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal.pdf
traphuong2103
 
PHP mysql Aggregate functions
Mudasir Syed
 
DBMS: Week 07 - Advanced SQL Queries in MySQL
RashidFaridChishti
 
FOUNDATION OF DATA SCIENCE SQL QUESTIONS
HITIKAJAIN4
 
Smarter Together - Bringing Relational Algebra, Powered by Apache Calcite, in...
Julian Hyde
 
Cubing and Metrics in SQL, oh my!
Julian Hyde
 
database_set_operations_&_function.pptx
tanvirkhanfahim
 
Unit 5 Introduction to Oracle and Sql.pptx
svasuki0708
 
Why you care about
 relational algebra (even though you didn’t know it)
Julian Hyde
 
Sql wksht-3
Mukesh Tekwani
 
SQL Queries .pdf
srinathpurushotham
 
CS121Lec05.pdf
georgejustymirobi1
 
Oracle SQL - Grants, filters, groups and more
A Data Guru
 
Horizontal Aggregations in SQL to Prepare Data Sets for Data Mining Analysis
IOSR Journals
 
Question 2B
Stefanie Wong
 
Case 9 and 10. SQL For Data Analysis 4.pptx
DilaTriarini1
 
Aggregation APi in Ibexa DXP by Adam Wójs
Jani Tarvainen
 
PostgreSQL, performance for queries with grouping
Alexey Bashtanov
 
Ad

More from Looker (20)

PDF
Join 2017_Deep Dive_To Use or Not Use PDT's
Looker
 
PDF
Join 2017_Deep Dive_Table Calculations 201
Looker
 
PDF
Join 2017_Deep Dive_Table Calculations 101
Looker
 
PDF
Join 2017_Deep Dive_Smart Caching
Looker
 
PDF
Join 2017_Deep Dive_Sessionization
Looker
 
PDF
Join 2017_Deep Dive_Redshift Optimization
Looker
 
PDF
Join 2017_Deep Dive_Integrating Looker with R and Python
Looker
 
PDF
Join 2017_Deep Dive_Customer Retention
Looker
 
PDF
Join 2017_Deep Dive_Workflows with Zapier
Looker
 
PDF
Join2017_Deep Dive_AWS Operations
Looker
 
PDF
Join 2017 - Deep Dive - Action Hub
Looker
 
PPTX
Winning the 3rd Wave of BI
Looker
 
PPTX
How the economist with cloud BI and Looker have improved data-driven decision...
Looker
 
PPTX
Frank Bien Opening Keynote - Join 2016
Looker
 
PPTX
Winning with Data
Looker
 
PPTX
Data Stack Considerations: Build vs. Buy at Tout
Looker
 
PPTX
Embedding Data & Analytics With Looker
Looker
 
PPTX
The Three Pillars of Customer Success Analytics
Looker
 
PPTX
The Power of Smart Counting at The RealReal
Looker
 
PPTX
Creating a Single Source of Truth: Leverage all of your data with powerful an...
Looker
 
Join 2017_Deep Dive_To Use or Not Use PDT's
Looker
 
Join 2017_Deep Dive_Table Calculations 201
Looker
 
Join 2017_Deep Dive_Table Calculations 101
Looker
 
Join 2017_Deep Dive_Smart Caching
Looker
 
Join 2017_Deep Dive_Sessionization
Looker
 
Join 2017_Deep Dive_Redshift Optimization
Looker
 
Join 2017_Deep Dive_Integrating Looker with R and Python
Looker
 
Join 2017_Deep Dive_Customer Retention
Looker
 
Join 2017_Deep Dive_Workflows with Zapier
Looker
 
Join2017_Deep Dive_AWS Operations
Looker
 
Join 2017 - Deep Dive - Action Hub
Looker
 
Winning the 3rd Wave of BI
Looker
 
How the economist with cloud BI and Looker have improved data-driven decision...
Looker
 
Frank Bien Opening Keynote - Join 2016
Looker
 
Winning with Data
Looker
 
Data Stack Considerations: Build vs. Buy at Tout
Looker
 
Embedding Data & Analytics With Looker
Looker
 
The Three Pillars of Customer Success Analytics
Looker
 
The Power of Smart Counting at The RealReal
Looker
 
Creating a Single Source of Truth: Leverage all of your data with powerful an...
Looker
 

Recently uploaded (20)

PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 

Lloyd Tabb on Symmetric Aggregates

  • 1. Symmetric Aggregates Look & Tell: NY March 24, 2015
  • 2. SQL Aggregates are Error Prone ● When computing SUM() and AVG() in SQL its easy to make mistakes ● Adding a join can make computations incorrect ● Difficult to track down problems ● Leads to lots of separate queries.
  • 3. SQL Queries Are Relate then Aggregate ● First: Relate and Filter (JOIN and WHERE clauses) ● Second: Aggregate (SUM and GROUP BY)
  • 4. LookML Combines Relate and Aggregate ● Logically, LookML combines them so aggregates are much more generalized. ● SUM and, AVERAGE work in any query, regardless of relationship
  • 5. So What? ● Radically simplifies model building (declare measures in their views and they just work). ● Joins don’t cause incorrect results. ● Fantastic new analytical patterns are now possible. ● Reduce the number of explores (base_views)
  • 6. Patterns ● New Analytic Ratios ● Revenue and expense in the same explore ● Attribute based on analysis ● Paired behavior (i.e., bought together) ● Sloppy joined dates for trends
  • 7. Upgrading Your Model ● Declare your relationship types in your joins. ● Turn it on!

Editor's Notes

  • #2: Intro yourself
  • #3: Relating is the power of SQL. Very complex relationships can be described. Its all about matrix transformation. Most people don’t understand the power of this complex relating. Its about combining multiple tables (spreadsheets) into a single spreadsheet. Aggregating is the process of taking that spreadsheet and reducing it, folding along dimensions and computing measures. Window functions are a post processing step to produce things like rank and cummulative sums, etc.
  • #4: Relating is the power of SQL. Very complex relationships can be described. Its all about matrix transformation. Most people don’t understand the power of this complex relating. Its about combining multiple tables (spreadsheets) into a single spreadsheet. Aggregating is the process of taking that spreadsheet and reducing it, folding along dimensions and computing measures. Window functions are a post processing step to produce things like rank and cummulative sums, etc.