Question
SQL statement Count
DW8, classic asp,vbscript
I need help with a sql statement . I am trying to fill a dynamic dropdown
list with values from my db but I only need to display the records where the
count for the timeID field is less than 15 for a particular date.
Fields are: scheduleID, dateID, timeID, firstName, lastName.
When the user selects a date, I only want the times to display where there
are less than 15 students signed up for the class. If the class is full (15
students), then that time will not display in the time dropdown.
Any suggestions on how to do this?
thx, donna
I need help with a sql statement . I am trying to fill a dynamic dropdown
list with values from my db but I only need to display the records where the
count for the timeID field is less than 15 for a particular date.
Fields are: scheduleID, dateID, timeID, firstName, lastName.
When the user selects a date, I only want the times to display where there
are less than 15 students signed up for the class. If the class is full (15
students), then that time will not display in the time dropdown.
Any suggestions on how to do this?
thx, donna
