Created
December 11, 2023 21:25
-
-
Save luukverhoeven/a50c614ef19e7bd4e0d824c12e1a09af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ccc.id, ccc.courseid, ccc.competencyid, cf.shortname as 'referentiel', cf.idnumber as 'framework Id', c.fullname as 'cours', comp.shortname | |
FROM prefix_competency_coursecomp ccc | |
INNER JOIN prefix_course AS c ON c.id = ccc.courseid | |
INNER JOIN prefix_competency AS comp ON comp.id = ccc.competencyid | |
INNER JOIN prefix_competency_framework AS cf ON cf.id = comp.competencyframeworkid | |
JOIN prefix_course_categories cc ON c.category = cc.id | |
WHERE 1=1 | |
%%FILTER_COMPETENCYFRAMEWORKS:cf.id%% | |
%%FILTER_SUBCATEGORIES:cc.path%% | |
%%FILTER_STARTTIME:c.startdate:>=%% %%FILTER_ENDTIME:c.startdate:<=%% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment