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
What information is maintained within the msdb database?
Do you know what are different types of replication in sql server?
Explain in details security in SQL azure?
What is the index requirement in SQL Azure?
What is SQL Azure Firewall?
You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?
What are scalar functions?
Name few endpoints exposed by ssrs 2012?
Explain what are the basic functions for master, msdb, model, tempdb databases?
What is indexing a document?
Tell me what do we need queues in sql service broker?
What are wait types?
What are the differences between ms sql server & oracle?
Write a SQL query in order to merge two different columns into single column?
What is the difference between char and varchar2 datatype in sql?