Is it possible to declare and use a varible in a select statement?
Is there anyway you can use a varible in a select statement in SQL?
Reason i ask is because i have a very complect calculationin the select statement and i need to work out percentages still.
Whole query below.
SELECT...