我已经成功地尝试了这个查询,但有一个限制。以下查询无限制地无限运行:
SELECT o.product_sku FROM order_table o WHERE EXISTS (SELECT 1 FROM (SELECT DISTINCT u.type_id, u.charge_type, u.billed_weight FROM ups_table u WHERE charge_type = 'order_shipping_table' AND NOT billed_weight = '0' ) dtm WHERE o.order_id = dtm.type_id) GROUP BY product_sku HAVING Count(product_sku) > 1