I am writing a Store Procedure in SQL Server 2012. I have a temporary table defined like so:
DECLARE @CURRENT_RET_WEEK_PTIMEIDS TABLE ( PTIMEID INT )
I am also using EXECUTE
to write a dynamic SQL query. Is there any way I can join this table onto the above temporary table?