I need to compare two tables. Data in the table of OrderHist always more than data in the table OrderCurrent.
I used code below to compare:
select ID from OrderHist h where not exists (select ID from OrderCurrent c where c.ID=h.ID)
Can this code be improved?