Solved

Updating  three columns in temp table using a select statement

Posted on 2014-09-24
1
239 Views
Last Modified: 2014-09-30
Hi,

I am currently using a temp table to pull data to look through and work on. I would like to be able to update the temp table using a select statement or even better to be able to update the base table.

I have 3 of the columns in the temp table populated from the base table, col1, col2, col3.
 Col4, col5 and col 6 need to be updated with the results of the select. If possible updating the relevant rows in the base table would be preferable
Any guidance would be appreciated.
Thank you.
0
Comment
Question by:Morpheus7
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40341306
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question