SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Dbms logical dependance
Dbms logical dependanceDbms logical dependance
Dbms logical dependance
Tej Kiran
 
Access essentials brionna elmore
Access essentials brionna elmoreAccess essentials brionna elmore
Access essentials brionna elmore
capjjj
 
Data mining techniques using weka
Data mining techniques using wekaData mining techniques using weka
Data mining techniques using weka
rathorenitin87
 

Mais procurados (20)

Dbms logical dependance
Dbms logical dependanceDbms logical dependance
Dbms logical dependance
 
BIS06 Physical Database Models
BIS06 Physical Database ModelsBIS06 Physical Database Models
BIS06 Physical Database Models
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
How to build a data dictionary
How to build a data dictionaryHow to build a data dictionary
How to build a data dictionary
 
Reconciliation Tool
Reconciliation ToolReconciliation Tool
Reconciliation Tool
 
03usecase
03usecase03usecase
03usecase
 
Access essentials brionna elmore
Access essentials brionna elmoreAccess essentials brionna elmore
Access essentials brionna elmore
 
Entities and attributes
Entities and attributesEntities and attributes
Entities and attributes
 
Data mining techniques using weka
Data mining techniques using wekaData mining techniques using weka
Data mining techniques using weka
 
Abap data dictionary
Abap data dictionaryAbap data dictionary
Abap data dictionary
 
WEKA: Data Mining Input Concepts Instances And Attributes
WEKA: Data Mining Input Concepts Instances And AttributesWEKA: Data Mining Input Concepts Instances And Attributes
WEKA: Data Mining Input Concepts Instances And Attributes
 
Lambda Lab: Zoola Analytics_Evaluate Exactly What You Need With Ad Hoc Views
Lambda Lab: Zoola Analytics_Evaluate Exactly What You Need With Ad Hoc ViewsLambda Lab: Zoola Analytics_Evaluate Exactly What You Need With Ad Hoc Views
Lambda Lab: Zoola Analytics_Evaluate Exactly What You Need With Ad Hoc Views
 
Weka
Weka Weka
Weka
 
Data management in Stata
Data management in StataData management in Stata
Data management in Stata
 
Index Tuning
Index TuningIndex Tuning
Index Tuning
 
SPSS vs Stata: The Best Ever Comparison
SPSS vs Stata: The Best Ever ComparisonSPSS vs Stata: The Best Ever Comparison
SPSS vs Stata: The Best Ever Comparison
 
Ooluk Data Dictionary Manager
Ooluk Data Dictionary ManagerOoluk Data Dictionary Manager
Ooluk Data Dictionary Manager
 
How PROC SQL and SAS® Macro Programming Made My Statistical Analysis Easy? A ...
How PROC SQL and SAS® Macro Programming Made My Statistical Analysis Easy? A ...How PROC SQL and SAS® Macro Programming Made My Statistical Analysis Easy? A ...
How PROC SQL and SAS® Macro Programming Made My Statistical Analysis Easy? A ...
 
Weka library, JAVA
Weka library, JAVAWeka library, JAVA
Weka library, JAVA
 
Introduction to Stata
Introduction to StataIntroduction to Stata
Introduction to Stata
 

Semelhante a Lambda Lab: Accessing All Your Data with Derived Tables

Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110
Brad Ganas
 

Semelhante a Lambda Lab: Accessing All Your Data with Derived Tables (20)

Zoola analytics - Using The Files Data Source
Zoola analytics - Using The Files Data SourceZoola analytics - Using The Files Data Source
Zoola analytics - Using The Files Data Source
 
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and DashboardsLambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
Lambda Lab: Zoola Analytics - How to Embed and Schedule Reports and Dashboards
 
Top 5 Tips for Keeping Reporting Simple
Top 5 Tips for Keeping Reporting SimpleTop 5 Tips for Keeping Reporting Simple
Top 5 Tips for Keeping Reporting Simple
 
Zoola Analytics – Using Filters For Better Reporting And Insights
Zoola Analytics – Using Filters For Better Reporting And InsightsZoola Analytics – Using Filters For Better Reporting And Insights
Zoola Analytics – Using Filters For Better Reporting And Insights
 
Lambda Lab: Measure and Improve Course Engagement With Zoola Analytics
Lambda Lab: Measure and Improve Course Engagement With Zoola AnalyticsLambda Lab: Measure and Improve Course Engagement With Zoola Analytics
Lambda Lab: Measure and Improve Course Engagement With Zoola Analytics
 
Agile Data Science 2.0
Agile Data Science 2.0Agile Data Science 2.0
Agile Data Science 2.0
 
Agile Data Science 2.0
Agile Data Science 2.0Agile Data Science 2.0
Agile Data Science 2.0
 
Data Discovery at Databricks with Amundsen
Data Discovery at Databricks with AmundsenData Discovery at Databricks with Amundsen
Data Discovery at Databricks with Amundsen
 
Agile Data Science 2.0 - Big Data Science Meetup
Agile Data Science 2.0 - Big Data Science MeetupAgile Data Science 2.0 - Big Data Science Meetup
Agile Data Science 2.0 - Big Data Science Meetup
 
Visualization using Tableau
Visualization using TableauVisualization using Tableau
Visualization using Tableau
 
MIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresMIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome Measures
 
Data science | What is Data science
Data science | What is Data scienceData science | What is Data science
Data science | What is Data science
 
Business Intelligence tools comparison
Business Intelligence tools comparisonBusiness Intelligence tools comparison
Business Intelligence tools comparison
 
SQL vs SOQL for Salesforce Analytics
SQL vs SOQL for Salesforce AnalyticsSQL vs SOQL for Salesforce Analytics
SQL vs SOQL for Salesforce Analytics
 
Data Wrangling and Visualization Using Python
Data Wrangling and Visualization Using PythonData Wrangling and Visualization Using Python
Data Wrangling and Visualization Using Python
 
Bigdataanalytics
BigdataanalyticsBigdataanalytics
Bigdataanalytics
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data Analytics
 
Data analytics online training
Data analytics online trainingData analytics online training
Data analytics online training
 
Demo Guidebook 040110
Demo Guidebook 040110Demo Guidebook 040110
Demo Guidebook 040110
 
Tableau and hadoop
Tableau and hadoopTableau and hadoop
Tableau and hadoop
 

Mais de Lambda Solutions

Mais de Lambda Solutions (20)

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

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

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