Basically I want to do
IF(x>y,z,NULL)
But without having to specify the 3rd argument all the time. I’m going to be using this a lot and I want my queries to be a bit more readable. Is there a function that is basically identical to IF except the 3rd argument defaults to NULL?
No. There is no function that meets your requirements.
I’m answering myself because no one wrote “no” in their answer.