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 / rajesh.a
Update e2
set e2.empname=e1.empname
from
emp2 e2 inner join emp1 e1 on e1.empid=e2.empid
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is sql server a database?
What are the disadvantages of indexes?
What is the exact numeric data type in sql?
Explain the concept of recursive stored procedure.
what stored procedure would you use to view lock information? : Sql server administration
Can we deploy SSRS reports on our personal website?
Do you know what is openxml in sql server?
What are the 10 characteristics of data quality?
how to create “alternate row colour”?
How to replace null values in expressions using isnull()?
Can another user execute your local temporary stored procedures?
How to create a simple table to test triggers in ms sql server?
What is the difference between delete and truncate statements?
whats new about truncate in sql server 2008?
What are the database objects? : SQL Server Architecture