MySQL Forums
Forum List  »  Newbie

Is this code MySQL. It came from an Azure Machine Learning query
Posted by: Phillip Putzback
Date: April 21, 2017 01:17PM

I got handed a project working with Python and what I think is MySQL and I came across this query that I can't find any documentation on.

select
case
when PolicyCancellationDate IS NOT NULL then min(PolicyExpirationDate, PolicyCancellationDate)
else case
when PolicyStatus == "Inactive" then PolicyExpirationDate
end
end as PolicyEndDate
from t1

It is that Min statement I can't find any documentation on. I have never seen a Min function take two arguments.

Options: ReplyQuote


Subject
Written By
Posted
Is this code MySQL. It came from an Azure Machine Learning query
April 21, 2017 01:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.