SELECT od.orderdetailid, od.orderid, od.productcode, od.quantity, od.productprice, od.totalprice, o.order_entry_system FROM orderdetails od
JOIN orders o
ON od.orderid = o.orderid
WHERE od.orderid > 6000000
AND od.totalprice <> od.quantity * od.productprice
AND o.orderstatus <> 'Cancelled'