Solved

Move data from one column to another column in the same table.

Posted on 2004-10-11
2
185 Views
Last Modified: 2012-06-27
I want to move the contents of a column RelatedMoveID to a column named RelatedInventoryID in a table named Tbl_Movements. Could you help me with what I assume will be an update query? Current values in RelatedInventoryID are all <NULL> and RelatedMoveID will be empty and Nulls are allowed.
0
Comment
Question by:jamesh1031
2 Comments
 
LVL 69

Expert Comment

by:ScottPletcher
ID: 12276333
UPDATE Tbl_Movements
SET RelatedInventoryID = RelatedMoveID
0
 
LVL 10

Accepted Solution

by:
AustinSeven earned 500 total points
ID: 12276364
update Tbl_Movements
set RelatedInventoryID  = RelatedMoveID,  RelatedMoveID = NULL

AustinSeven
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now