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


Please Help Members By Posting Answers For Below Questions

What is difference between commit and rollback when used in transactions?

959


What are sql dirty pages?

1027


How to create new table with "create table" statements?

1109


What are the different Authentication modes in SQL Server and how can you change authentication mode?

1086


How to replace given values with null using nullif()?

991


Explain primary key, foreign key and unique key?

994


What is wrong with sql server client libarary dll, ntwdblib.dll?

1041


What is 2nf normalization form?

1138


How do you trace the traffic hitting a sql server?

1141


What is postgresql server?

1005


What is SubQuery in SQL Server 2008

1023


Does partitioning help performance?

937


What is query optimization process?

1015


What are window functions in sql server?

1008


How to view existing indexes on an given table using sp_help?

1140