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 / vicky
update emp2 e2 set e2.empname = (select e1.empname from
emp1 e1 where e2.empid=e1.empid)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I change my passwords (database, LDAP, and so on) without causing an outage?
How does index makes search faster?
Explain user defined functions?
Why do we partition data?
Explain important index characteristics?
Differentiate between sql temp table vs table variable?
What is the report builder?
What is merge statement?
How many ways to create table-valued functions?
What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration
Explain a differential backup?
What is the default schema of your login session in ms sql server?
How to use group functions in the select clause in ms sql server?
When would you use the stored procedures or functions?
What is the use of @@spid?