adspace


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 we use distinct and group by together?

1147


how many tables will create when we create table, what are they? : Sql dba

1156


Can delete statement be rollbacked?

1065


Does group by remove duplicates?

1121


What is your daily office routine?

2353


What is the current version of postgresql?

1188


what is collation? : Sql dba

1242


How do I remove duplicates in two columns?

1202


What is the current version of sql?

1106


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


define sql insert statement ? : Sql dba

1110


what is bcp? When does it used? : Sql dba

1065


What is the best sql course?

1064


Can we rollback truncate?

1083


what are all the common sql function? : Sql dba

1141