I have a table that looks like the below in SQL
I would like to select the row with the earliest date in either the PR create date or AC create date field. So in this case, I would want these two records.
I know that I can write
Select email, min(PR_create_date) from table
group by email
However, this will only find the minimum date in the PR_create_date column. How can I find the minimum date in either the PR_create_date or AC_create_date columns?
minimum date in either the PR_create_date or AC_create_date