2

Need to fetch value from array for each in MAT

SELECT a.table[0].value.specVersion.value FROM OBJECTS 742325 a 

In above query, i am able to get the value on specific index but i want run in loop to fetch value for every index in an array.

James Z
  • 12,209
  • 10
  • 24
  • 44

1 Answers1

1

Something like

SELECT b.value.specVersion.value from OBJECTS (SELECT a.table[0:-1] FROM OBJECTS 742325 a) b

should work, though it doesn't give you the array index. The inner select gives you the array contents, the outer one then steps through the contents.

user13762112
  • 401
  • 3
  • 7