You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

sql query to get pending to do enrollments

Summary:

I need help ina sql query to get pending "To do"/"Required" enrollments details for the person so that i can send them alerts in Teams. Below is the query. It works for some employees. For some employees it is not showing data even if it is showing in front end.

Content (please ensure you mask any confidential information):

WITH

event_data AS (
SELECT
a.event_id AS root_event_id,
e.learning_item_id AS root_learning_item_id,
u.person_id AS learner_id,
DECODE(
a.completion_status,
'C','Completed','P','Passed','I','Incomplete','F','Failed','U','Unknown','N','Not Attempted',

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!