I facing one issues about select the jsonb column value. I want to display the check in and out time data when the day is equal to Monday. I tried to use
SELECT name, dayp -> 'days' ->> 'Monday'
FROM attendanceprofile,
jsonb_array_elements(daysprofile) as dayp;
cannot get the value.
The value inside the jsonb column is
[ {
"days": {
"Monday": {
"checkin": "7:00",
"checkout": "18:00"
},
"Tuesday": {
"checkin": "5:00",
"checkout": "16:00"
}
}
} ]