Select SHIFT.ID,SHIFT.PatCount from SHIFT group by SHIFT.ID,SHIFT.PatCount HAVING ( (select COUNT(VISIT.SHIFT_ID) from VISIT) < SHIFT.PatCount )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)