Search
 
SCRIPT & CODE EXAMPLE
 

SQL

query to remove duplicate records in postgresql server


        
            
        
     DELETE FROM
    basket a
        USING basket b
WHERE
    a.id < b.id
    AND a.fruit = b.fruit;
Comment

postgresql remove duplicate rows 2 columns

DELETE FROM sf_table
WHERE id IN
    (SELECT id
    FROM 
        (SELECT id,
         ROW_NUMBER() OVER( PARTITION BY tosp, icd
        ORDER BY  id ) AS row_num
        FROM sf_table ) t
        WHERE t.row_num > 1 );
Comment

PREVIOUS NEXT
Code Example
Sql :: update mysql from paypal shopping cart and ipn 
Sql :: SQL Backup Only New Changes in SQL 
Sql :: in sql developer where equal queres 
Sql :: SOQL Child to parent 
Sql :: how to find lowest salary by departments ? 
Sql :: systemctl mssql-server details 
Sql :: format datetime mysql 
Sql :: SQL Manipulação de Tabelas Constraint 
Sql :: indexes sql 
Sql :: what is group function in sql 
Sql :: what is in operator 
Sql :: modificar tipo de dato sql server 
Sql :: how to insert multiple values in a single column in sql 
Sql :: max in postgresql 
Sql :: utf8_encode mysql 
Sql :: postgresql get random data from table 
Sql :: can pandas fetch data from sql 
Sql :: how to add column sql 
Csharp :: unity get number of child objects 
Csharp :: get current computer name C# 
Csharp :: how do i convert to base64 c# 
Csharp :: how to edit postprocessing through script 
Csharp :: change sprite of gameobject unity 
Csharp :: hide console window c# 
Csharp :: c# count files in directory and subdirectories 
Csharp :: unity 3d camera rotate up and down 
Csharp :: dotnet executable directory 
Csharp :: core Request.CreateResponse 
Csharp :: c# base64 decode 
Csharp :: openfiledialog c# 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =