Table schema inhancement
От | hmidi slim |
---|---|
Тема | Table schema inhancement |
Дата | |
Msg-id | CAMsqVxsoEQOa95FpL56vja0P+qoAxvuPqZk2ysALz5JG046B4w@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Table schema inhancement
|
Список | pgsql-general |
Hi,
I have these tables:select *
from generate_series(date '2018-04-07', date '2018-04-14', interval '1 day') the day
where extract ('dow', the_day) = 1
I'm face many problems with this schema;
I should verify the boolean values.
I should extract the corresponding dates based to the values.
I decompose the period into different periods then run the query to fetch the products.
How can I enhance the query? or is there any proposition for the schema table to enhance it?
В списке pgsql-general по дате отправления: