Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How to insert into a temp table a query using a join

$
0
0

I'm trying to insert into a temp table with a query that uses a join:


  SELECT  c.value1, s.value1,c.value2,s.value2
  FROM table1 c
  JOIN table2 s
  ON c.value1  = s.value1
  WHERE c.value2 = s.value2
  

if I put my insert into my temp table at the top, its says invalid object name


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>