SlideShare a Scribd company logo
Lambda Lab
Accessing All Your Data With Derived Tables
What is Zoola Analytics
Zoola Analytics is an award winning, cloud-based reporting and analytics solution
that allows you to prove the impact of your Learning. Zoola gives complete and
secure access to your data, stunning reports and dashboards, embedded reports,
and automated delivery. Zoola Analytics is built for Moodle, Totara Learn, and
xAPI-conformant systems.
● Complete access to all your data including custom fields and tables,
● Choose from a library of over 30 out-of-the-box report and dashboards
● Use the drag and drop designer to create your reports and dashboards,
● Embed your reports and dashboards in your LMS, or
● Schedule them to automate the delivery to your stakeholders
Agenda
● What is a Derived Table
○ when to use it, and
○ what are some common use cases
● How to modify a Data Source and add a Derived Table
● How to write your own SQL and use them in the Data Source
3
The Zoola Information Hierarchy
4
Data Connections Data Sources Ad Hoc Views Reports Dashboards
This is the definition of the connection to your database.
Only visible when you are creating Data Sources.
The Zoola Information Hierarchy
5
Data Connections Data Sources Ad Hoc Views Reports Dashboards
A metadata layer that provides a clean view of the
database. A Data Source allows you to control access to
the data based on security permissions.
The Zoola Information Hierarchy
6
Data Connections Data Sources Ad Hoc Views Reports Dashboards
An Ad Hoc view is used to explore, analyze, and
visualize the data provided by the Data Source. Ad Hoc
Views are used to create Reports and Dashboards.
The Zoola Information Hierarchy
7
Data Connections Data Sources Ad Hoc Views Reports Dashboards
Reports are finalized versions of Ad Hoc Views intended for
presentation and analysis purposes, allowing stakeholders
to interact with data and export the final result.
The Zoola Information Hierarchy
8
Data Connections Data Sources Ad Hoc Views Reports Dashboards
Dashboards combine Reports to deliver an at-a-glance and
interactive summary of information for users to view the
state of their Learning.
Data Sources
10
Data Sources
11
Derived Tables
A derived table is a table expression that
appears in the FROM clause of a query.
12
SELECT d.userid AS userid,
MAX(CASE WHEN f.shortname = 'gender' THEN d.data ELSE '' END) AS Gender,
MAX(CASE WHEN f.shortname = 'state' THEN d.data ELSE '' END) AS State
FROM mdl_user_info_data d
JOIN mdl_user_info_field f ON d.fieldid = f.id
GROUP BY d.userid
NOTE :: LEFT JOIN mdl_user.id = der_uf.userid
Custom User Profile Field Query
13
SELECT c.id as cohortid
, cm.userid as userid
, e.courseid as courseid
, c.name as cohort
FROM mdl_cohort c
INNER JOIN mdl_cohort_members cm ON (cm.cohortid = c.id)
INNER JOIN mdl_enrol e ON (e.customint1 = c.id)
NOTE :: LEFT JOIN mdl_user.id = der_cohort.userid AND mdl_course.id = der_cohort.courseid
Cohort Enrollment Query
SELECT u.lastname AS LAST, u.firstname AS FIRST, u.idnumber AS IDnumber, u.email AS
email, c.shortname AS CourseID, COUNT(l.id) AS Edits
FROM prefix_user AS u
JOIN prefix_role_assignments AS ra ON u.id = ra.userid
JOIN prefix_context AS ctx ON ra.contextid = ctx.id
JOIN prefix_course AS c ON c.id = ctx.instanceid
LEFT JOIN prefix_log AS l ON l.userid = u.id AND l.course = c.id
AND l.action NOT LIKE "view%"
%%FILTER_STARTTIME:l.TIME:>%% %%FILTER_ENDTIME:l.TIME:<%%
WHERE ra.roleid = 5 AND ctx.instanceid = c.id AND c.visible=1
AND c.shortname LIKE '%OL-%' %%FILTER_CATEGORIES:c.category%%
GROUP BY u.idnumber
HAVING Edits < 2
14
Configurable Report Query (before)
source: https://docs.moodle.org/37/en/ad-hoc_contributed_reports
SELECT
u.lastname AS LAST , u.firstname AS FIRST , u.idnumber AS IDNumber
, u.email AS email
, c.shortname AS CourseID
, COUNT(l.id) AS Edits
FROM mdl_user AS u
JOIN mdl_role_assignments AS ra ON ( u.id = ra.userid AND ra.roleid = 5 )
JOIN mdl_context AS ctx ON ( ra.contextid = ctx.id )
JOIN mdl_course AS c ON ( c.id = ctx.instanceid AND c.visible = 1 )
LEFT JOIN mdl_logstore_standard_log AS l ON ( l.userid = u.id AND l.courseid = c.id
AND l.action NOT LIKE "view%"
AND (from_unixtime(l.timecreated) BETWEEN
TIMESTAMP('2018-06-01 00:00:00.000') AND TIMESTAMP('2019-06-01 00:00:00.000'))
GROUP BY u.idnumber
HAVING Edits < 2
15
Configurable Report Query (after)
Training
Zoola Trial
17
Sign up for our monthly
Zoola Analytics Newsletter
https://go.lambdasolutions.net/subscribe-to-the-zoola-newsletter
18
Lambda Lab: How to Use Assignment Rubrics to Drive Learning Outcomes
● Tuesday June 25, 10am PT
Master Class: Marketing Your eLearning
● Tuesday July 9, 10am PT
19
Upcoming Sessions
Lambda Lab: Accessing All Your Data with Derived Tables

More Related Content

PDF
Zoola Analytics: Creating Intelligent Filters For Smarter Reports & Dashboards
PDF
Analyzing Lesson Activity Data To Build Better eLearning
PPTX
Important SAS Tips and Tricks for A Grade
PDF
Zoola Analytics – Creating Impactful Insights With Reports and Dashboards
PPTX
Data Dictionary
PPTX
What is a DATA DICTIONARY?
PPT
Data Dictionary
PPTX
Data Dictionary in System Analysis and Design
Zoola Analytics: Creating Intelligent Filters For Smarter Reports & Dashboards
Analyzing Lesson Activity Data To Build Better eLearning
Important SAS Tips and Tricks for A Grade
Zoola Analytics – Creating Impactful Insights With Reports and Dashboards
Data Dictionary
What is a DATA DICTIONARY?
Data Dictionary
Data Dictionary in System Analysis and Design

What's hot (20)

PPTX
Dbms logical dependance
ODP
BIS06 Physical Database Models
PDF
SAP ABAP data dictionary
PPTX
How to build a data dictionary
PPTX
Reconciliation Tool
PPT
03usecase
PPTX
Access essentials brionna elmore
PPT
Entities and attributes
DOCX
Data mining techniques using weka
PPTX
Abap data dictionary
PPTX
WEKA: Data Mining Input Concepts Instances And Attributes
PDF
Lambda Lab: Zoola Analytics_Evaluate Exactly What You Need With Ad Hoc Views
PPTX
PDF
Data management in Stata
PPSX
Index Tuning
PDF
SPSS vs Stata: The Best Ever Comparison
PDF
Ooluk Data Dictionary Manager
PDF
How PROC SQL and SAS® Macro Programming Made My Statistical Analysis Easy? A ...
PPTX
Weka library, JAVA
PDF
Introduction to Stata
Dbms logical dependance
BIS06 Physical Database Models
SAP ABAP data dictionary
How to build a data dictionary
Reconciliation Tool
03usecase
Access essentials brionna elmore
Entities and attributes
Data mining techniques using weka
Abap data dictionary
WEKA: Data Mining Input Concepts Instances And Attributes
Lambda Lab: Zoola Analytics_Evaluate Exactly What You Need With Ad Hoc Views
Data management in Stata
Index Tuning
SPSS vs Stata: The Best Ever Comparison
Ooluk Data Dictionary Manager
How PROC SQL and SAS® Macro Programming Made My Statistical Analysis Easy? A ...
Weka library, JAVA
Introduction to Stata
Ad

Similar to Lambda Lab: Accessing All Your Data with Derived Tables (20)

PDF
Zoola analytics - Using The Files Data Source
PDF
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
PDF
Top 5 Tips for Keeping Reporting Simple
PDF
Zoola Analytics – Using Filters For Better Reporting And Insights
PDF
Lambda Lab: Measure and Improve Course Engagement With Zoola Analytics
PDF
Agile Data Science 2.0
PDF
Agile Data Science 2.0
PDF
Data Discovery at Databricks with Amundsen
PPTX
DBSAT-–-Oracle-Database-Security-Assessment-Tool.pptx
PDF
Agile Data Science 2.0 - Big Data Science Meetup
PPTX
Visualization using Tableau
PDF
MIS5101 WK10 Outcome Measures
PPTX
Data science | What is Data science
PPTX
Business Intelligence tools comparison
PPTX
SQL vs SOQL for Salesforce Analytics
PDF
Data Wrangling and Visualization Using Python
PDF
Bigdataanalytics
PPTX
Big Data Analytics
PDF
Data analytics online training
PPT
Demo Guidebook 040110
Zoola analytics - Using The Files Data Source
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
Top 5 Tips for Keeping Reporting Simple
Zoola Analytics – Using Filters For Better Reporting And Insights
Lambda Lab: Measure and Improve Course Engagement With Zoola Analytics
Agile Data Science 2.0
Agile Data Science 2.0
Data Discovery at Databricks with Amundsen
DBSAT-–-Oracle-Database-Security-Assessment-Tool.pptx
Agile Data Science 2.0 - Big Data Science Meetup
Visualization using Tableau
MIS5101 WK10 Outcome Measures
Data science | What is Data science
Business Intelligence tools comparison
SQL vs SOQL for Salesforce Analytics
Data Wrangling and Visualization Using Python
Bigdataanalytics
Big Data Analytics
Data analytics online training
Demo Guidebook 040110
Ad

More from Lambda Solutions (20)

PPTX
How Online Learning Delivery Tools Are Changing the Business Landscape
PDF
Everything Instructors Need To Get Started with Engaging Learners
PDF
Moodle 3.9 - Deep Dive
PDF
Custom Certificates: How To Design, Manage, And Measure eLearning Impact
PDF
The Ultimate Guide To Creating & Managing Moodle Forums For eLearning Success
PDF
Forums: eLearning’s Must-Have For Engaging Adult Learners
PDF
Pro Tips To Make Picking Your Perfect LMS A Snap!
PDF
Expert Secrets For (Im)proving Learning Impact: Assessment to Analytics
PDF
Revealing ArkansasIDEAS’ Secret Learning Analytics Formula For World-Class eL...
PDF
Build & Track Blockbuster Interactive Video in Moodle and Totara Learn
PDF
3 Brilliant Ways Proven To Get Your Online Courses To The Top Of Google
PDF
Not a Project Manager? Learn to Handle your eLearning Projects with Ease!
PDF
How Customer Success Can Increase Revenue and Reduce Churn
PDF
Moodle 3.8 Release - Webinar
PDF
Why You Should Be Running Your L&D Team Like A Startup
PDF
How to utilize data to improve operational and learning effectiveness with th...
PDF
Ask Me Anything! Best Practices in eLearning
PDF
The Pro's Guide to LMS Implementation
PDF
Top5 practical app_building_engaging_learning (1)
PDF
Top 5 eLearning Best Practices from 2019
How Online Learning Delivery Tools Are Changing the Business Landscape
Everything Instructors Need To Get Started with Engaging Learners
Moodle 3.9 - Deep Dive
Custom Certificates: How To Design, Manage, And Measure eLearning Impact
The Ultimate Guide To Creating & Managing Moodle Forums For eLearning Success
Forums: eLearning’s Must-Have For Engaging Adult Learners
Pro Tips To Make Picking Your Perfect LMS A Snap!
Expert Secrets For (Im)proving Learning Impact: Assessment to Analytics
Revealing ArkansasIDEAS’ Secret Learning Analytics Formula For World-Class eL...
Build & Track Blockbuster Interactive Video in Moodle and Totara Learn
3 Brilliant Ways Proven To Get Your Online Courses To The Top Of Google
Not a Project Manager? Learn to Handle your eLearning Projects with Ease!
How Customer Success Can Increase Revenue and Reduce Churn
Moodle 3.8 Release - Webinar
Why You Should Be Running Your L&D Team Like A Startup
How to utilize data to improve operational and learning effectiveness with th...
Ask Me Anything! Best Practices in eLearning
The Pro's Guide to LMS Implementation
Top5 practical app_building_engaging_learning (1)
Top 5 eLearning Best Practices from 2019

Recently uploaded (20)

PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
“AI and Expert System Decision Support & Business Intelligence Systems”
Machine learning based COVID-19 study performance prediction
Programs and apps: productivity, graphics, security and other tools
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Advanced methodologies resolving dimensionality complications for autism neur...
sap open course for s4hana steps from ECC to s4
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
Teaching material agriculture food technology
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Lambda Lab: Accessing All Your Data with Derived Tables

  • 1. Lambda Lab Accessing All Your Data With Derived Tables
  • 2. What is Zoola Analytics Zoola Analytics is an award winning, cloud-based reporting and analytics solution that allows you to prove the impact of your Learning. Zoola gives complete and secure access to your data, stunning reports and dashboards, embedded reports, and automated delivery. Zoola Analytics is built for Moodle, Totara Learn, and xAPI-conformant systems. ● Complete access to all your data including custom fields and tables, ● Choose from a library of over 30 out-of-the-box report and dashboards ● Use the drag and drop designer to create your reports and dashboards, ● Embed your reports and dashboards in your LMS, or ● Schedule them to automate the delivery to your stakeholders
  • 3. Agenda ● What is a Derived Table ○ when to use it, and ○ what are some common use cases ● How to modify a Data Source and add a Derived Table ● How to write your own SQL and use them in the Data Source 3
  • 4. The Zoola Information Hierarchy 4 Data Connections Data Sources Ad Hoc Views Reports Dashboards This is the definition of the connection to your database. Only visible when you are creating Data Sources.
  • 5. The Zoola Information Hierarchy 5 Data Connections Data Sources Ad Hoc Views Reports Dashboards A metadata layer that provides a clean view of the database. A Data Source allows you to control access to the data based on security permissions.
  • 6. The Zoola Information Hierarchy 6 Data Connections Data Sources Ad Hoc Views Reports Dashboards An Ad Hoc view is used to explore, analyze, and visualize the data provided by the Data Source. Ad Hoc Views are used to create Reports and Dashboards.
  • 7. The Zoola Information Hierarchy 7 Data Connections Data Sources Ad Hoc Views Reports Dashboards Reports are finalized versions of Ad Hoc Views intended for presentation and analysis purposes, allowing stakeholders to interact with data and export the final result.
  • 8. The Zoola Information Hierarchy 8 Data Connections Data Sources Ad Hoc Views Reports Dashboards Dashboards combine Reports to deliver an at-a-glance and interactive summary of information for users to view the state of their Learning.
  • 11. 11 Derived Tables A derived table is a table expression that appears in the FROM clause of a query.
  • 12. 12 SELECT d.userid AS userid, MAX(CASE WHEN f.shortname = 'gender' THEN d.data ELSE '' END) AS Gender, MAX(CASE WHEN f.shortname = 'state' THEN d.data ELSE '' END) AS State FROM mdl_user_info_data d JOIN mdl_user_info_field f ON d.fieldid = f.id GROUP BY d.userid NOTE :: LEFT JOIN mdl_user.id = der_uf.userid Custom User Profile Field Query
  • 13. 13 SELECT c.id as cohortid , cm.userid as userid , e.courseid as courseid , c.name as cohort FROM mdl_cohort c INNER JOIN mdl_cohort_members cm ON (cm.cohortid = c.id) INNER JOIN mdl_enrol e ON (e.customint1 = c.id) NOTE :: LEFT JOIN mdl_user.id = der_cohort.userid AND mdl_course.id = der_cohort.courseid Cohort Enrollment Query
  • 14. SELECT u.lastname AS LAST, u.firstname AS FIRST, u.idnumber AS IDnumber, u.email AS email, c.shortname AS CourseID, COUNT(l.id) AS Edits FROM prefix_user AS u JOIN prefix_role_assignments AS ra ON u.id = ra.userid JOIN prefix_context AS ctx ON ra.contextid = ctx.id JOIN prefix_course AS c ON c.id = ctx.instanceid LEFT JOIN prefix_log AS l ON l.userid = u.id AND l.course = c.id AND l.action NOT LIKE "view%" %%FILTER_STARTTIME:l.TIME:>%% %%FILTER_ENDTIME:l.TIME:<%% WHERE ra.roleid = 5 AND ctx.instanceid = c.id AND c.visible=1 AND c.shortname LIKE '%OL-%' %%FILTER_CATEGORIES:c.category%% GROUP BY u.idnumber HAVING Edits < 2 14 Configurable Report Query (before) source: https://docs.moodle.org/37/en/ad-hoc_contributed_reports
  • 15. SELECT u.lastname AS LAST , u.firstname AS FIRST , u.idnumber AS IDNumber , u.email AS email , c.shortname AS CourseID , COUNT(l.id) AS Edits FROM mdl_user AS u JOIN mdl_role_assignments AS ra ON ( u.id = ra.userid AND ra.roleid = 5 ) JOIN mdl_context AS ctx ON ( ra.contextid = ctx.id ) JOIN mdl_course AS c ON ( c.id = ctx.instanceid AND c.visible = 1 ) LEFT JOIN mdl_logstore_standard_log AS l ON ( l.userid = u.id AND l.courseid = c.id AND l.action NOT LIKE "view%" AND (from_unixtime(l.timecreated) BETWEEN TIMESTAMP('2018-06-01 00:00:00.000') AND TIMESTAMP('2019-06-01 00:00:00.000')) GROUP BY u.idnumber HAVING Edits < 2 15 Configurable Report Query (after)
  • 18. Sign up for our monthly Zoola Analytics Newsletter https://go.lambdasolutions.net/subscribe-to-the-zoola-newsletter 18
  • 19. Lambda Lab: How to Use Assignment Rubrics to Drive Learning Outcomes ● Tuesday June 25, 10am PT Master Class: Marketing Your eLearning ● Tuesday July 9, 10am PT 19 Upcoming Sessions