I am joining 3 tables as shown below –
select *
from Employee as e inner join [Grant] as g
on e.EmpID = g.EmpID -- "virtual table"
inner join Location as l
on l.LocationID = e.LocationID
Code from select to GrantID seems to be a “virtual table”. So, it can be joined with another table (Location) to perform a 3 table join. I want to give this virtual table an alias. Is that possible ? If yes, then how do i do it ?
NOTE –
i use sql server 2008 express
Can’t you just do this?
I don’t know what columns you’re trying to select, thus the placeholder.