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


Please Help Members By Posting Answers For Below Questions

What is a node in teradata?

936


Describe the set operators in teradata.

954


What is the use of fallback?

941


What is spool space and when running a job if it reaches the maximum spool space how you solve the problem?

1059


How to explain project Architecture and flow in teradata interviews?Can please anyone help on this? Am new to teradata.

4322


What do you mean by teradata sql assistant?

1000


What are the joins in teradata?

922


What is real time and near real time data warehousing?

1065


What are the different functions included in the server software?

978


Difference between multiload and tpump?

1043


What do you mean by ttu in teradata?

974


What is basic teradata query language?

1033


What is spool space?

1075


What are the steps involved after the disk manager passes the request?

1027


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

982