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 a single SQL to delete duplicate records from the a
single table based on a column value. I need only Unique
records at the end of the Query.

Answer Posted / petko petkov

The following example shows how to create table and insert
data without duplicate rows from existing table:

CREATE TABLE NODUPS AS
(
SELECT * FROM Departments
UNION
SELECT * FROM Departments
)
WITH DATA;

Is This Answer Correct ?    10 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bteq script in teradata?

1155


What is teradata? Also, list out some of the primary characteristics of teradata.

1059


What is bteq utility in teradata?

974


What is the difference between teradata and basic rdbms?

1023


What are the components provided on node?

1042


What is the difference between union and union all in teradata?

1128


What is smp and mpp platforms?

971


Define views in teradata with syntax.

1077


Can you connect multiload from ab initio?

1215


What are the scenarios in which full table scans occurs?

1008


How to find duplicates in a table?

1218


How many sessions of MAX is PE capable of handling at a particular time?

1081


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

2048


How do you verify a complicated sql?

1066


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

991