I want to use a column name I have created in a select
statement. I'm pretty sure it can be done but I
seem to be doing something wrong. (I've seen people
use it here...)
For example;
select apples a,bees b, a + b from table
the table looks like
apples bees
1 100
2 500
But I get an error saying a is an invalid column name.
(b is also invalid)
How can I do this?
Thanks
ds
statement. I'm pretty sure it can be done but I
seem to be doing something wrong. (I've seen people
use it here...)
For example;
select apples a,bees b, a + b from table
the table looks like
apples bees
1 100
2 500
But I get an error saying a is an invalid column name.
(b is also invalid)
How can I do this?
Thanks
ds