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 / saravanan

update w set w.ename=q.ename from empn1 w,
(select e.ename,e.empid from empn e,empn1 a where
a.empid=e.empid) q where w.empid=q.empid

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an sql server agent?

995


How to create a dynamic cursor with the dynamic option?

969


explain declarative management framework (dmf) in sql server 2008?

949


How to loop through returning rows?

972


Can two tables have the same primary key?

1133


what is hash nonclustered index

907


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

901


What is an index in a database?

922


How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication

1014


How to change a login name in ms sql server?

1024


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

894


Explain the dirty pages?

950


What is a subquery in a select query statement in ms sql server?

1065


Does union all remove duplicates?

1016


How to create percentile function?

139