cancel
Showing results for 
Search instead for 
Did you mean: 

need to convert array of objects to columns of table

0 Kudos

products :[

{

name :x

value:1

group1:1

},

{

name:y

value:2,

group3:3

},

{

name:z

value:3

group2:2

}

]

output:

SN group2_name group2_value group1_name group1_value group3_name group3_value

1 x 1 y 2 z 3



Hi I am having product array in JSON. i am using JSON_TABLE to convert products array objects to columns, but iam unable to do. please help input object and output shown above.

I need hana query

former_member34
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're new in asking questions here, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. You should also make sure you're using all the appropriate tags, so the right experts can find your question.

Should you wish, you can revise your question now by selecting Actions, then Edit.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS . By personalizing your profile with a photo of you, you encourage readers to respond.

Best regards

Jennifer

SAP Community moderator

Accepted Solutions (0)

Answers (0)