Hi guys,
Can someone quide me how can i sum two expression collumns into a statement?
a=1
b=2
SELECT 1 AS a, 2 AS b
ok so far. The problem is when i add one more collumn to store the sum. I can't figure whow am i going to phrase into the select statement. The below returns error.
Total=a+b
SELECT 1 AS a, 2 AS b, a+b as total
Thank you
Can someone quide me how can i sum two expression collumns into a statement?
a=1
b=2
SELECT 1 AS a, 2 AS b
ok so far. The problem is when i add one more collumn to store the sum. I can't figure whow am i going to phrase into the select statement. The below returns error.
Total=a+b
SELECT 1 AS a, 2 AS b, a+b as total
Thank you