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

Hi guys,
As per my knowledge i am expecting the following ans.

1.If u want delete duplicates at runtime means
output time it shows unique values but not delete
from table.
The following query.

=> Select [all columns] from tablename group by [all columns];

(OR)

2.If u want delete duplicate values from total table.
The following query.
The table having duplicates means it is multiset table so,

=> create set table nodup_table as dup_table with data;
If u want the table name as same do like this.
=> Next just drop table dup_table;
=> Finally rename table nodup_table to dup_table;

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the between keyword in teradata?

1040


Which is faster fastload or multiload?

1119


What is TPD?

1379


What does Amp contain and what are all the operations that it performs?

1007


How can we check the version of Teradata that we are using currently?

1069


What is the difference between global temporary tables and volatile temporary tables?

1183


What is the command in bteq to check for session settings ?

1180


Where is teradata rdbms used?

1102


What is the use of fallback?

996


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

1098


What is the difference between teradata and basic rdbms?

1030


What is logical data model?

1210


Discuss the advantages of using partitioned primary index in a query?

955


When tpump is used instead of multiload?

1106


How do you set the session mode parameters in bteq?

1107