I got it! Simple and it worked great.
delete
t1
from
tTable t1, tTable t2
where
t1.locationName = t2.locationName and
t1.id > t2.id
More Related Contents:
- Finding duplicate values in a SQL table
- How do I (or can I) SELECT DISTINCT on multiple columns?
- How to delete duplicate rows in SQL Server?
- Removing duplicate rows from table in Oracle
- Delete duplicate records in SQL Server?
- How to delete duplicate rows without unique identifier
- MySQL ON DUPLICATE KEY UPDATE for multiple rows insert in single query
- MySQL remove duplicates from big database quick
- Finding duplicate rows in SQL Server
- How do I find duplicates across multiple columns?
- Find duplicate rows with PostgreSQL
- How to select records without duplicate on just one field in SQL?
- Left Join without duplicate rows from left table
- How to bulk insert only new rows in PostreSQL
- Removing duplicate rows (based on values from multiple columns) from SQL table
- SQL Query output in VBA is different than in SQL Oracle
- How do I escape a single quote in SQL Server?
- Selecting data from two different servers in SQL Server
- PostgreSQL: running count of rows for a query ‘by minute’
- What is the difference between HAVING and WHERE in SQL?
- How to delete duplicate entries?
- How to rewrite IS DISTINCT FROM and IS NOT DISTINCT FROM in SQL Server 20008R2?
- SQL Server: Howto get foreign key reference from information_schema?
- Database EAV Pros/Cons and Alternatives
- Can a stored procedure/function return a table?
- sqlplus statement from command line
- Naming of ID columns in database tables
- How to insert a string which contains an “&”
- Subtracting Dates in Oracle – Number or Interval Datatype?
- Why are aggregate functions not allowed in where clause