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 / vidya
update emp2 set empname =e.empname from emp1 e where
e.empid =emp2.empid
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of passing name-value pairs as parameters?
How to count rows with the count(*) function in ms sql server?
How to use user defined functions in expressions?
What is the maximum row of a size?
Why people hate cursor?
What is dml command?
What is NOT NULL Constraint in sql server 2012?
What is efficiency data?
How to get a list of columns using the "sp_help" stored procedure in ms sql server?
How to use "begin ... End" statement structures in ms sql server?
How many databases can we create in a single server?
What is a recursive stored procedure in sql server?
What is transactional replication?
Define Wed Edition in SQL Azure?
What are the advantages of stored procedure in sql server?