結果 : how to write correlated subquery in sql server