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 / dhana
update e2 set e2.empname = e1.empname
from emp2 e2,emp1 e1
where e1.empid = e2.empid
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Mention the 3 ways to get a count of the number of records in a table.
Define Unique Key?
Detail about the hardware which is supported by SQL server?
How to backup encryption key ?
What is the size of transaction log file?
What is the use of set nocount on/off statement?
Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
What is rank function?
How to how to convert numeric expression data types using the convert() function??
Explain the first normal form(1nf)?
What is compression - row-level and page-level compression?
What is query parameter in ssrs?
How to use copy and concatenate commands in SQL?
How many types of cursor type are there?
What to check if a User database is locked?