I want to get the maximum used capacity for each order_product_id for each week when executing a request. The JOIN or SELECT variant in the WHERE clause does not work becaus