Notes
Notes - notes.io |
SELECT
war.LEARNER_ID,
papf.person_number,
panf.full_name,
war.STATUS,
war.COMPLETION_DATE,
war.LEARNING_ITEM_ID
FROM
WLF_ASSIGNMENT_RECORDS_F war,
per_all_people_f papf,
per_person_names_f panf
WHERE
war.LEARNING_ITEM_ID = :your_spec_learning_item_id
AND papf.person_id = war.LEARNER_ID
AND panf.person_id = papf.person_id
AND panf.name_type = 'GLOBAL'
AND TRUNC(SYSDATE) BETWEEN war.EFFECTIVE_START_DATE AND war.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN papf.EFFECTIVE_START_DATE AND papf.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN panf.EFFECTIVE_START_DATE AND panf.EFFECTIVE_END_DATE
ORDER BY panf.full_name
-- Check if POSITION=1 sections only gives the correct count
SELECT
wlh_spec.CHILD_LEARNING_ITEM_ID AS SECTION_ID,
sec_li.NAME AS SECTION_NAME,
wlh_spec.MANDATORY_FLAG AS SECTION_FLAG,
wlh_spec.POSITION AS SECTION_POSITION,
wlh_sec.CHILD_LI_RELATED_OBJECT_ID AS COURSE_ID,
crs_li.NAME AS COURSE_NAME,
wlh_sec.MANDATORY_FLAG AS ACTIVITY_FLAG,
wlh_sec.POSITION AS ACTIVITY_POSITION
FROM
WLF_LI_HIERARCHIES_F wlh_spec,
WLF_LI_HIERARCHIES_F wlh_sec,
WLF_LEARNING_ITEMS_F_VL sec_li,
WLF_LEARNING_ITEMS_F_VL crs_li
WHERE
wlh_spec.LEARNING_ITEM_ID = :your_spec_learning_item_id
AND wlh_spec.HIERARCHY_TYPE = 'ORA_SPECIALIZATION_SPECL_SECTION'
AND wlh_spec.MANDATORY_FLAG = 'Y'
AND wlh_spec.POSITION = 1 -- <<< Only first/primary section
AND wlh_sec.LEARNING_ITEM_ID = wlh_spec.CHILD_LEARNING_ITEM_ID
AND wlh_sec.HIERARCHY_TYPE = 'ORA_SPECL_SECTION_ACTIVITY'
AND wlh_sec.MANDATORY_FLAG = 'S'
AND sec_li.LEARNING_ITEM_ID = wlh_spec.CHILD_LEARNING_ITEM_ID
AND crs_li.LEARNING_ITEM_ID = wlh_sec.CHILD_LI_RELATED_OBJECT_ID
AND TRUNC(SYSDATE) BETWEEN wlh_spec.EFFECTIVE_START_DATE AND wlh_spec.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN wlh_sec.EFFECTIVE_START_DATE AND wlh_sec.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN sec_li.EFFECTIVE_START_DATE AND sec_li.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN crs_li.EFFECTIVE_START_DATE AND crs_li.EFFECTIVE_END_DATE
ORDER BY wlh_spec.POSITION, wlh_sec.POSITION;
SELECT
wlh_spec.CHILD_LEARNING_ITEM_ID AS SECTION_ID,
sec_li.NAME AS SECTION_NAME,
wlh_spec.MANDATORY_FLAG AS SECTION_FLAG,
wlh_spec.POSITION AS SECTION_POSITION,
wlh_sec.CHILD_LI_RELATED_OBJECT_ID AS COURSE_ID,
crs_li.NAME AS COURSE_NAME,
wlh_sec.MANDATORY_FLAG AS ACTIVITY_FLAG,
wlh_sec.POSITION AS ACTIVITY_POSITION,
COUNT(DISTINCT wlh_sec.CHILD_LI_RELATED_OBJECT_ID)
OVER () AS TOTAL_IF_POSITION1_ONLY
FROM
WLF_LI_HIERARCHIES_F wlh_spec,
WLF_LI_HIERARCHIES_F wlh_sec,
WLF_LEARNING_ITEMS_F_VL sec_li,
WLF_LEARNING_ITEMS_F_VL crs_li
WHERE
wlh_spec.LEARNING_ITEM_ID = :your_spec_learning_item_id
AND wlh_spec.HIERARCHY_TYPE = 'ORA_SPECIALIZATION_SPECL_SECTION'
AND wlh_spec.MANDATORY_FLAG = 'Y'
AND wlh_spec.POSITION = 1 -- Section position 1 only
AND wlh_sec.LEARNING_ITEM_ID = wlh_spec.CHILD_LEARNING_ITEM_ID
AND wlh_sec.HIERARCHY_TYPE = 'ORA_SPECL_SECTION_ACTIVITY'
AND wlh_sec.MANDATORY_FLAG = 'S'
AND sec_li.LEARNING_ITEM_ID = wlh_spec.CHILD_LEARNING_ITEM_ID
AND crs_li.LEARNING_ITEM_ID = wlh_sec.CHILD_LI_RELATED_OBJECT_ID
AND TRUNC(SYSDATE) BETWEEN wlh_spec.EFFECTIVE_START_DATE AND wlh_spec.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN wlh_sec.EFFECTIVE_START_DATE AND wlh_sec.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN sec_li.EFFECTIVE_START_DATE AND sec_li.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE) BETWEEN crs_li.EFFECTIVE_START_DATE AND crs_li.EFFECTIVE_END_DATE
ORDER BY wlh_spec.POSITION, wlh_sec.POSITION;
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
