tastott / jsoql

A SQL-like language for querying JSON data
http://tastott.github.io/jsoql
3 stars 1 forks source link

Operations on nulls #34

Closed tastott closed 9 years ago

tastott commented 9 years ago

Check whether or not a property value is null:

SELECT Blah FROM Thing WHERE Blah IS NOT NULL

Use a replacement value if a property value is null: ISNULL(Blah, 'Default') (TSQL-like) or SELECT Blah || 'Default' (Javascript-like) or SELECT Blah ?? 'Default' (C#-like).