• In the code you have posted you are missing a comma (,) after COUNT(NHSNo) AS [patientvol].