I have this code in my select statement
ISNULL(a.PolicySignedDateTime,aq.Amount) AS \'Signed Premium\',
But I want to see if \"a.PolicySign
There is the COALESCE expression (although not function https://msdn.microsoft.com/en-us/library/ms190349.aspx) test the arguments in order and keep doing it until finds the value not NULL and returns it.
example usage:SELECT COALESCE(NULL, NULL, 5)--returns 5
In your case :
COALESCE(a.PolicySignedDateTime,aq.Amount) AS 'Signed Premium',