The below JSON data is one of the field in the table. In the below JSON data, I need to replace the value which have "Not available" in the expLevel into "Not listed" using SQL query.
"Information": {
"Name": [],
"Class": [],
"Degree": ["Graduate or professional degree"],
"major": [],
"skill": [],
"expLevel": ["0 to 2 years",
"Not available",
"3 to 5 years"],
"certificationtype": ""
}
I have tried this:
update sr set filter = replace(filter, '"Not available"', '"available" , "listed"')
from sharedreports_check sr
where filter like '%"expLevel":[[]"%Not available%"%'
But it is not worked.
Please let me know what will be the SQL query to replace it.