Hi All,
Need help in rotation of data in *Postgres*.
There is a table called crew_details
[image: enter image description here] <https://i.stack.imgur.com/cTarQ.png>
There is a requirement to rotate the crew members for in weekly or on the
every 7th day and continue for rest 6days the same order of for the given
date range un till it reach end date . and the expected output should be
like this below
[image: >] <https://i.stack.imgur.com/hjasI.png>
Please can any one help me in in the rotation in *postgres SQL*