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

How to a Query to copy data from on table to another table.

Answer Posted / dhiraj kumar

we have to use INSERT INTO method.
with the use of this method we can easily transfer records
from one table to another table but both table should have
similar columns or you need to select same no of columns
and datatype as inserting table

example:table A1 having 2 columns emp_name,emp_address
and A2 having 4 column name,address,city,dept

INSERT INTO A1 select name,address from A2.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between local and global temporary tables?

1139


What is the difference between update lock and exclusive lock?

976


Characterize join and name diverse sorts of joins?

968


Do you know what is fill factor and pad index?

1004


Explain about local stored procedure?

972


What is filestream?

1001


How will you decide the active and passive nodes?

1132


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

989


Can you use order by when defining a view?

977


What are sql dirty pages?

1027


How can we delete Duplicate row in table?

1066


What is sql server english query?

1129


What is replication with database mirroring? : sql server database administration

1079


How to rename databases in ms sql server?

1205


When to use null data driven subscription?

207