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 / saravanan
update w set w.ename=q.ename from empn1 w,
(select e.ename,e.empid from empn e,empn1 a where
a.empid=e.empid) q where w.empid=q.empid
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to create a simple stored procedure in ms sql server?
What is database replication? What are the different types of replication you can set up in sql server?
What are the triggers in sql?
Write an sql query to sort a table according to the amounts in a row and find the second largest amount.
How can we check the sql server version?
Explain what is row_number function?
Explain the creation and execution of a user-defined function in the sql server?
Can you insert NULL in unique column?
How to convert a table data in XML format in sql server?
What is the rdl file?
Does partitioning improve performance sql server?
What is the difference between a clustered index and a non-clustered index?
How we can compare two database data?
What is in place upgrade in sql server?
What is the use of keyword with encryption. Create a store procedure with encryption?