i have the following JSON value in a column inside BigQuery and i am struggling to pull out the data into columns.
The value us:
[{"availableSlots":0,"date":"03/16/2021","day":"Tue","slotType":"AM","totalSlots":5},{"availableSlots":2,"date":"03/16/2021","day":"Tue","slotType":"PM","totalSlots":5},{"availableSlots":5,"date":"03/17/2021","day":"Wed","slotType":"AM","totalSlots":5},{"availableSlots":5,"date":"03/17/2021","day":"Wed","slotType":"PM","totalSlots":5},{"availableSlots":5,"date":"03/18/2021","day":"Thu","slotType":"AM","totalSlots":5}]
And i am trying to get the first and second value of availableSlots.
I did try with both JSON_EXTRACT_SCALAR and JSON_EXTRACT
THank you for any help.
