I have query that looks something like the following:
select firstname, lastname
from names
where firstname = 'john'
I would like to have something like the following (conceptually):
select
[names.firstname + names.lastname] as 'fullname'
from names
where names.firstname = 'john'
Of course, this returns an invalid column name 'names.firstname + names.lastname'.
Is it possible to return a single aliased column containing the result of two columns from the same table?