Is it possible to create an indexed view which returns the following results :-
My table structure is
Location Table
LocationAlias Table
and of course, a Location can have 0<->Many Location Aliases
So, can this be done?
It seems highly doubtful that it is possible to index such a view - SQL Server will not allow indexes to be created on views that use subqueries, nor on views that use self-joins (see the docs here) - so I think you're out of luck.