You need to sign in to do that
Don't have an account?
HDoshi.ax1738
How to write ISNULL in SOQL query
In SQL, we can write [ SELECT ISNULL(fieldname, 0) AS IsFieldNull FROM tablename ] query.
How to write ISNULL in SOQL query like SQL query?
Thanks.
Select id from object where field = null
e.g. if(object.fieldName == null)
object.fieldName = 0;
select * from CASECOMMENT
where COMMENTBODY is NULL;
The way SOQL relates object reduces the need for ISNULL but it would still proved additional flexibility in queries.
Setting the default for a possibly null field is very usefull when pulling data to export.