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 copy only distinct data into another table which is not already exist in database?

Answer Posted / karthik soundararajan

TableA -- Existing Table

ID
5
5
5
5
5

Solution : SELECT DISTINCT ID INTO TableB FROM TableA

It create a table called TableB and insert only one record as shown below:

ID
5

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is “asynchronous” communication in sql server service broker?

1012


Explain different types of self contained sub query?

1008


What is an execution plan? How would you view the execution plan?

1051


What is clr ddl trigger?

935


What do you understand by recursive stored procedure?

904


What is the usage of the sign function?

1076


What is a field name?

945


please differentiate between delete and truncate?

972


How many categories of functions based their return modes?

1085


What is a cache in ssrs?

134


How to create median function?

164


What is a partitioned view?

973


Explain partitioned view?

1052


What is difference between after and before?

1060


How to download and install microsoft .net framework version 2.0?

1124