write down the sql query?
Table Name : emp1
empid empname
1 bala
2 guna
Table Name : emp2
empid empname
1 <Null>
2 <Null>
Solution : emp1 names are updated in emp2, write a query?
Answer Posted / pradip jain
update e2
set e2.name= e1.name
from emp2 e2
join emp1 e1 on e1.id=e2.id
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How do I edit a stored procedure in sql server?
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
how can u get last observation in an unknown dataset ?
What are the different editions available in sql server 2000?
What is resource governor?
How many databases can we create in a single server?
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
Define inner join in sql server joins?
Do you know what is sql injection?
What are the operating modes in which database mirroring runs?
Explain foreign key in sql server?
What are the new features of sql server 2012 reporting service?
How to list all schemas in a database?
How to backup encryption key ?
Detail about the hardware which is supported by SQL server?