sql - how to work duplicate values delete from query -


this query....

delete    second_salary      a.rowid > (        select b.rowid           second_salary b         a.salary = b.salary) 

can 1 explain query?

sql 1:

delete second_salary a.rowid > (sql 2)

browse each record in table second_salary, if record have rowid > value in array result of sql 2 delete it.

sql 2:

(with a.salary number knew form record reviewed, example n)

select b.rowid second_salary b a.salary = b.salary

result return: array rowid of records have n = b.salary

end: retain record have smalless rowid in records have salary simalar.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -