Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do you send email on SQL Server?

1003


what happens on checkpoint? : Sql server database administration

1021


What are triggers? How do you invoke a trigger on demand?

1245


What are the types of indexing?

1031


Explain the categories of stored procedure?

889


Can a unique index be created on a column, which contains null?

881


How do I find the sql server instance name?

922


Explain what is lock escalation and what is its purpose?

875


What is the latest version of microsoft sql server?

970


Explain the Ways to improve the performance of a sql azure database?

80


What is a dataset and what are the different types of datasets?

125


Difference between report and query parameter. Why do we need different type of parameter?

906


What do we need queues in sql service broker?

1005


List out some of the requirements to set up a sql server failover cluster?

981


What are the differences between lost updates and uncommitted dependencies?

1015