Set Sql Variable Using Select Statement With Where Clause