Assigning query result to a variable

Many thanks for your help.