Open this example in the interactive library
Source code
SELECT key FROM json_each('{"a":2,"x":5,"y":6}') EXCEPT SELECT key FROM json_each('{"a":1}') ORDER BY key;
Sample output
[
{
"key": "x"
},
{
"key": "y"
}
]
List dictionary keys absent from a baseline using SQLite JSON functions.
Open this example in the interactive library
SELECT key FROM json_each('{"a":2,"x":5,"y":6}') EXCEPT SELECT key FROM json_each('{"a":1}') ORDER BY key;
[
{
"key": "x"
},
{
"key": "y"
}
]