I have a user defined table:CREATE TYPE [dbo].[int_list_tbltype] AS TABLE( [ID] INT NULL)GO
I am testing some options but just can't seem to get the sql correct:DECLARE @myTVP dbo.int_list_tbltype INSERT INTO @myTVP ([ID])VALUES (3) SELECT v.Status, v.ItemFROM myView v INNER JOIN @myTVP tvp ON v.SocStatus = tvp.ID
If the tvp has values, the INNER join works fine.But at times there my be no values at all, so I want to bring back all the rows from myView.Right and Left joins don't seem to do the trick.Any suggestions?Thanks!