August 7, 200718 yr I have a data driven website connected to a FileMaker Pro 8.5 database. In my webform, I have a few dropdowns and textboxes. The problem is that there are lots of empty fields in the database, so no matter what the user is going to enter, the search is not returning any data. So with one NULL in the queryString, no data will be returned. Does anybody know the syntax of how to handle NULLs in a queryString? I know in Oracle there's the NVL function: NVL(value,NULL) it returns "value" and SQL Server it's ISNULL(value,null), it returns "value". I'm not sure what's FileMaker's syntax...I tried both and of course didn't work... any help would be really really appreciated!! thansk
August 8, 200718 yr I don't know if this will work with FileMaker, but the SQL-92 standard uses: COALESCE(v1,v2) which the standard says is shorthand for: CASE WHEN V1 IS NOT NULL THEN V1 ELSE V2 END so you might try one of those two.
Create an account or sign in to comment