skip to Main Content

Mysql – Count by occurrences

I have a query similar to: select * from combined where valid_rating is null order by FIND_IN_SET(provider, (select provider from combined where valid_rating is null group by provider order by count(1) desc) ) Basically, I am trying to order by…

VIEW QUESTION

Parsing JSON with Oracle SQL without knowing incoming field names

I need to parse JSON using Oracle SQL select. Here is my JSON: {"result":[ { "field_name1":{"display_value":"TEST1","link":"https://test1.com","value":"abcd"}, "field_name2":{"display_value":"","link":"","value":""}, "field_name3":{"display_value":"TEST3","link":"https://test3.com","value":"efgh"}, "field_name4":{"display_value":"TEST4","link":"https://test3.com","value":"ijkl"} } ]} I want to get results as follows: field_name1:abcd field_name3:efgh field_name4:ijkl excluding those that have nulls in the value. How…

VIEW QUESTION
Back To Top
Search