title: INSERT INTO with SELECT using OUTPUT
body: <p>I want to store the <code>pt_id</code> into my temporary table by using <code>OUTPUT</code>, however I'm not inserting <code>pt_id</code> into <code>ct_tarf</code>, what should I do? </p>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>The multi-part identifier 'pt_id' could not be bound.</p>
  </blockquote>
  
  <p>Query:</p>
  
  <pre><code>DECLARE @tbl_ids_tarf TABLE (pt_id INT, pt_id_tarf INT)
  
  INSERT INTO dbo.ct_tarf(tr_id_serv, tr_name, tr_money)
  OUTPUT pt_id, inserted.tr_id INTO @tbl_ids_tarf(ptr_id, ptr_id_tarf)
     SELECT 
        pt_id_serv, pt_name, pt_money
     FROM 
        dbo.opr_prop_tar
     WHERE 
        pt_id_tarf
  </code></pre>