hi,
how to reference an alias column name that consists more than one word.
it's like this
select address, substring(address, 5, 8) as 'member's address' from msmember
where charindex('r', substring( alias column name, 1, 6))>0
i want to check if the first 6 chars of 'member's address' contains 'r'.
thx.