There is a table called suppliers with following data:
supplier_id minimum_order_price 1 100 2 55 4 33
There is a table called suppliers_products with following data: Assuming product_id is only with one supplier.
supplier_id product_id 1 3237022467 1 3298604931 2 1792078659 2 3237022083 4 1963023491
One supplier_id may have many product_id.
I have a data in such a way that product_id and its price from some third party. Example:
product_id price 3237022467 45 3298604931 56 1792078659 78 3237022083 123 1963023491 65
Is this possible to show only those results which product's price is greater than its suppliers minimum_order_price?
Assuming product_id is only with one supplier.