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 / guest
Hope this will help,
DELETE FROM EMPLOYEE
WHERE (EMP_ID,EMP_NAME) IN
(SELECT EMP_ID,EMP_NAME FROM
(SELECT EMP_ID,EMP_NAME ,ROW_NUMBER() OVER (PARTITION BY
EMP_ID,EMP_NAME ORDER BY EMP_ID,EMP_NAME) AS FLG
FROM EMPLOYEE) A
WHERE
A.FLG<>1)
| Is This Answer Correct ? | 4 Yes | 10 No |
Post New Answer View All Answers
Hi send me the Teradata dumps to my id rajeshanantha@yahoo.co.in Thanks Rajesh. A
What is the purpose of joins in teradata?
Where is teradata rdbms used?
What is basic teradata query language?
Explain teradata vs. Redshift?
What are the string manipulation operators and functions associated with teradata?
Difference between inner join and outer join?
What are the various etl tools in the market?
What is the primary index in teradata?
Differentiate primary key and partition key?
Let us say there is a file that consists of 100 records out of which we need to skip the first and the last 20 records. What will the code snippet?
Explain teradata architecture?
What are the uses of client software involved in teradata?
What is meant by a Highest Cost Plan?
What is a node in teradata?