Take the data from table and rotate the member on every 7th day or starting day of the week and continue for whole week continue till the date range

Поиск
Список
Период
Сортировка
От nikhil raj
Тема Take the data from table and rotate the member on every 7th day or starting day of the week and continue for whole week continue till the date range
Дата
Msg-id CAG1ps1wWWGS1bai_N5n-aJzTQ7Efv9WR37OPAydnT1MBqbrZBQ@mail.gmail.com
обсуждение исходный текст
Ответы Take the data from table and rotate the member on every 7th day or starting day of the week and continue for whole week continue till the date range.  (nikhil raj <nikhilraj474@gmail.com>)
Re: Take the data from table and rotate the member on every 7th day or starting day of the week and continue for whole week continue till the date range  (Steve Midgley <science@misuse.org>)
Список pgsql-sql

Hi All,

Need help in rotation of data in Postgres.

There is a table called crew_details

enter image description here

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

>

Please can any one help me in in the rotation in postgres SQL

В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Could not serialize access due to read/write dependencies among transactions
Следующее
От: nikhil raj
Дата:
Сообщение: Take the data from table and rotate the member on every 7th day or starting day of the week and continue for whole week continue till the date range.