Hi,
I have a problem related to the function min and max. In this case Im working with 5 tables with this relation:
1. Customer(Name, address, KNR(PK)
2. Belong(KNR(FK), BENR(FK)
3. Order(order_sum, BENR(PK)
4. IN_Order(price, order_amount, order_date, BENR(FK), BANR(FK)
5. Product (Product_name, product_price, BANR(PK)
I want to answar this question:
- Which customer(s) (show the customer(s), have the highest order sum and which have the lowest order sum. I should also show the product in the order.
If I have been unclear so feel free to ask
thanks in advance!
/Martin