For this query
SELECT min(date) min_date FROM order_products group by order_id
min_date
ignores the NULL
values in a group of order id.
In my case I want min_date = NULL if the group has a order_products tuple with null value in date.
Any idea how can I achieve this ?