Probably you don't have to think about the second solution at all. That is similar to taking the longest route to go to your destination.
I can modify you first solution to help you out.
Code:
DECLARE @Var1 int
DECLARE @Var1 varchar(20)
-- This line assigns column values to variables
Select @Var1=Col1, @Var2=Col2, from...... where....)
Select @Var1, @Var2 -- This line prints the values of your variables.
You dont have to use separate SELECTs with same JOIN and WHERE for assigning values to each of the variables.
Does that helps?
Cheers!
_________________________
-Vijay G

Strive for Perfection
