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

Why is the case expression used in teradata?

1023


Explain the parallel data extension in teradata?

1026


what are the day to day activities of teradata DBA ?

5755


Explain the advantages of partitioned primary index in a query?

972


tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you

767


What is meant by a Virtual Disk?

1044


What are the different table types that are supported by teradata?

954


What is meant by a dispatcher?

955


Highlight the differences between Primary Key and Primary Index.

1016


What do high confidence, low confidence and no confidence mean in explain plan?

978


In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

1089


How do you see a ddl for an existing table?

961


Explain PDE.

1012


How will you solve the problem that occurs during update?

984


Can we collect statistics on multiple columns?

986