I have a table which has a column called warnings. the column value for 2 rows is shown bellow
warnings
-------------------------------------------------------------------
{"isNew":false,"fieldWarnings":[],"dupId":null,"conflictIds":[]}
{"isNew":false,"fieldWarnings":[],"dupId":3763,"conflictId":null}
I want an sql statement that will select the top row but not the bottom row. i tried this sql query but it selects both rows
select warnings from table where cast(warnings->>'dubId' AS TEXT) is null;