I've searched for an answer to this here on the boards and elsewhere - I'm guessing this issue has already been resolved, but for some reason, I'm not finding what I need... so, I'll ask and hope this isn't a duplicated question.
What I have is a list of students and employees in a MSSQL database. One of the columns contains a string with the current term (semester) with an identifier for each class that the student is registered for, delimited by ';' for each entry.
What I'm trying to figure out is how to return a value of students who are signed up for more than 4 classes for the current semester. To get a count of all students registered for the current semester, the query is simple:
SELECT COUNT(*) AS Current_Students
FROM UserData
WHERE StuTermClassString LIKE '%2163%'
This works fine to return the total number of students, but I need a way to return a value of the full-time students (those that have more than 11 class hours per semester, which is typically 4+ classes). So I need a way to determine when the count of classes with '%2163%' for a record is > 4. If I haven't explained this well enough, please let me know and I'll expand on it more. Thanks!