Re: Date and filling issues

Поиск
Список
Период
Сортировка
От chester c young
Тема Re: Date and filling issues
Дата
Msg-id 158249.65933.qm@web54302.mail.re2.yahoo.com
обсуждение исходный текст
Ответ на Date and filling issues  (Christopher Crews <isephoenix@yahoo.com>)
Список pgsql-sql
> 
> A sample of the current results data would be like
> date                    sales
> 2008-03-07          100.00
> 2007-03-10         150.00
> 2007-03-18         50.00
> 
> and what I'm trying to do is fill in the missing dates with sales
> values of 0.

what I do is have a table called days that is the left side of a left
join.

I'm not proud of this, but it works well.


     ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


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

Предыдущее
От: Erik Jones
Дата:
Сообщение: Dynamic sql and variable record types
Следующее
От: "Ian Tegebo"
Дата:
Сообщение: Testing DDL