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

what exactly sql injuction.how to overcome.....

2546


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

2147


How do I run a trace in sql server?

984


what are the different stages of Report Processing?

135


List types of tables in SQL Azure?

126


What is model database in sql server?

1054


Why do we use non clustered index?

1083


How do I create a stored procedure in sql server?

1034


what is blocking? : Sql server database administration

1043


How can I know what locks are running on which resource?

957


How to change parameter value inside the report?

164


Explain the microsoft sql server delete command? : SQL Server Architecture

1086


How to execute multiple stored procedures at one time in sql server?

1011


Is it possible for a stored procedure to call itself or recursive stored procedure?

952


How to count duplicated values in a column in ms sql server?

1095