| От | Andreas Kretschmer |
|---|---|
| Тема | Re: Ways to deal with large amount of columns; |
| Дата | |
| Msg-id | eea42068-5137-73d7-e86b-ab02f1b95bb8@a-kretschmer.de обсуждение |
| Ответ на | Re: Ways to deal with large amount of columns; (Robert Zenz <robert.zenz@sibvisions.com>) |
| Список | pgsql-general |
Am 30.08.2018 um 15:15 schrieb Robert Zenz: > As David said, you'd be better off having a table that looks like this (in terms > of columns): > > * MONTH > * AGENT > * CASHFLOW > > So your query to get the sum of a single agent would be looking like: > > select > sum(CHASFLOW) > where > AGENT = 'Agent' > and MONTH between values; > > It might be a little more work to create a GUI for that (or map this model to > the existing GUI) but it is much simpler to maintain and work with. agree. it is also possible to use partitioning. Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера