The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
I have a Principal that would like to see the number of failing students within each course. He just needs the total number for each course and not the individual students. My queries are returning the number of students in each course that have a grade below 60% for current_grade on the scores table for any course. I have attempted several different prompts to group correctly with no success.
Hey @morris_gart, if I understand it correctly, you're looking to get the count of students that are failing (=current score lower than 60%) in each course in the active term. Does something like this return the data that you're looking for?
"Count the active student enrollments with a current score lower than 60% in each active course in the XXXXX term."
I was able to get the correct data with some adjustment to the prompt. I do find that using the same exact prompt and only changing the term name will sometimes produce a different SQL.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in