I have a Inline table valued Function that i want to pass a column from a select but will use a table alias.
For Example:
select top 1000 a.*, b.* from item a
LEFT JOIN itemList b on a.item_id = b.item_id
where a.item_id in (SELECT * FROM dbo.fn_GIVFUC('1234567', a.item_id))
Results in : Incorrect syntax near 'a'.
Thanks