I’m getting started with T-SQL, but appear to be misunderstanding the column alias concepts. I’ve tried searching for a answer to this without success, though I’m sure it must be something very simple to a more experienced developer. I’m using SQL Server 2008.
select FirstName as nick
from [Dev].[dbo].[Name]
where nick like '%et%'
order by nick desc
Error:
Msg 207, Level 16, State 1, Line 2 Invalid column name ‘nick’.
How do I make this work?
1 Answer