Firebird 2.5 Removing Rows with Duplicate Fields -


i trying removing duplicate values which, reason, imported in specific table. there no primary key in table. there 27797 unique records.

select distinct txdate, plunumber itemaudit 

give me correct records, displays txdate, plunumber of course.

if possible select fields select distinct of txdate,plunumber export values, delete duplicated ones , re-import. or if possible delete distinct values entire table.

if select distinct of fields value incorrect.

to information on duplicates, need query information duplicate rows using join:

select b.* (select count(*) cnt, txdate, plunumber        itemaudit        group txdate, plunumber        having count(*) > 1) inner join itemaudit b on a.txdate = b.txdate , a.plunumber = b.plunumber 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -