Open this example in the interactive library
Source code
SELECT key FROM json_each('{"a":1,"b":2}') INTERSECT SELECT key FROM json_each('{"b":4,"c":5}') ORDER BY key;
Sample output
[
{
"key": "b"
}
]
Find keys shared by two dictionaries using SQLite JSON functions.
Open this example in the interactive library
SELECT key FROM json_each('{"a":1,"b":2}') INTERSECT SELECT key FROM json_each('{"b":4,"c":5}') ORDER BY key;
[
{
"key": "b"
}
]