Sql Set Variable Values With Select Statement In Where Clause