Originally posted by marist89
How do you know you have duplicates, then?Originally posted by ronnie
Nope there is no primary key.
select account_id, trade_date, settlement_date, amount, quantity
from trades
group by account_id, trade_date, settlement_date, amount, quantity
having count(*) > 1




Reply With Quote