Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

How to convert my query into a View

$
0
0

Hi,

I have a question around SQL. My knowledge is "OK" but very rudimentary, hence me asking you guys! I am sure my need is very simply resolved if you know how!

Our software provider has created me a custom script to extract a large amount of data which is working as expected. My next challenge is that I need to take that query and convert it into a View for others to work with. The query begins with creating a temp table and I am not sure of the correct SQL to use to convert this into a View (VIEW's only seem to work with SELECT statements).

Can anyone help here? Below is the first view lines of SQL from the script they have supplied: -

SQL
createTABLE#tmpbase(uniqtransheadINTNOTNULL,transdetailnumberINTNOTNULL,

Thanks in advance,

Glenn


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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