Table variables can be treated a great deal like tables (with some exceptions).
DECLARE@tablevarTABLE (
idcolumnint
,column3nvarchar ( 50 )
)
... later...
SELECTx.column1, x.column2, y.column3
FROMdbo.table1 x
JOIN@tablevar y
ONx.idcolumn = y.idcolumn