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 happens when the SQL Azure database reaches Max Size?

111


Give the query of getting last two records from the table in SQL SERVER?

927


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

1021


How can I track the changes or identify the latest insert-update-delete from a table?

937


What is nested transaction?

1086


What is the default Port No on which SQL Server listens?

1108


Explain foreign key in sql server?

1001


What is the current pricing model of SQL Azure?

104


What is BCP? When does it used in sql server 2012?

1042


Explain having clause and where clause?

1037


What are the two authentication modes in sql server?

1097


How do I find the sql server instance name?

954


Does group by or order by come first?

937


What is 1nf normalization form?

1015


How can you check the level of fragmentation on a table?

1031