I have table which has a column of type json with name "demographi c". I want to compare keys by their values predefined by me and the result of that should be the name of the key and not the value which i will save to another column's rows.

The json columns looks like a this:
Code:
{"he" : {"he_vakiy" : 29384, "he_naiset" : 14803, "he_miehet" : 14581, "he_kika" : 1485, "he_0_2"
...