I'm just trying to run a count a count and use the id09 to then match back and append address information but when I run this query get the following error
where Price >600000 and (select YoB,id09
where YoB <= '1966')
Msg 4145, Level 15, State 1, Line 15
An expression of non-boolean type specified in a context where a condition is expected, near ')'.
I'm sure its a school boy error but would appreciate your help.