how can we replace the particular column value of a resulted
set of executed query? I mean write down a sql query to
chane the particular column's value of a resulted set of
executed query

Answer Posted / mglbayar

UPDATE (SELECT t1.col1 c1, t2.col1 c2
FROM table1 t1, table2 t2
WHERE t1.pk = t2.fk AND more_condition)
SET c1 = c2;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you sum a count in sql?

564


What does rownum mean in sql?

558


how can we optimize or increase the speed of a mysql select query? : Sql dba

515


What are all the different normalization?

566


What is pls integer?

587






How do I create a sql database?

526


Why we use cross join?

543


What is data profiling in sql?

521


What is the difference between clustered and non-clustered index in sql?

527


what is difference between delete and truncate commands? : Sql dba

582


Difference between table function and pipelined function?

589


Does execute immediate commit?

702


Explain raise_application_error.

644


What is localdb mssqllocaldb?

623


Why function is used in sql?

525