An Azure relational database service.
Hi @Mohan Kumar R S , thanks for reaching out to us. we are glad to assist you here. Instead of using 'openjson' function please try below sql query to achieve the desired result:
select country, state, JSON_VALUE(jsonvalue,'$.name') as firstname,JSON_VALUE(jsonvalue,'$.surname') as surname, JSON_VALUE(jsonvalue,'$.age') as age from YourTableName;
Please note that the json properties are case sensitive, so use accordingly.
----------
If an Answer is helpful, please “Accept Answer” or Up-Vote for the same which might be beneficial to other community members reading this thread.