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 ?
A simple workAround could be:
So, if 1970/01/01 turns up, you know that there’s a NULL value.