Filter SQL

These SQL statements delete all items that have not been sold and filers
the items that have been sold and are not in Order History