id|name|json_data
1|vasya|{"tags": ["a", "b", "c"]}
2|lena|{"tags":["d", "e", "f"]}
3|dima|{"tags": ["x", "y", "z"]}
id|name|json_data
1|vasya|{"tags": ["a", "b", "c"]}
3|dima|{"tags": ["x", "y", "z"]}
SELECT * FROM table WHERE "table"."json_data" ??? '{"tags":["a", "b", "c", "y"]}';
SELECT * FROM "table" WHERE "teble"."data" ?| array['a', 'b', 'c', 'y'];
id|name|json_data
1|vasya|{"a": 0.1, "b": 0.2, "c": 0.3}
2|lena|{"d": 0.3, "e": 0.4, "f": 0.8}
3|dima|{"x": 0.2, "y": 0.2, "z": 0.3}