Re: Populating dataset

2010-03-25 Thread Johnny Withers
Wouldn't you want to handle that on the application side? Otherwise, you
would have to have a table of all possible dates to do some kind of join to
find missing values. (I would think).

JW

On Thu, Mar 25, 2010 at 11:50 AM, Tompkins Neil <
neil.tompk...@googlemail.com> wrote:

> Hi,
>
> We have a table which contains the following sample of information
>
> 2010-03-20
> 2010-03-21
> 2010-03-22
> 2010-03-23
> 2010-03-26
> 2010-03-27
> 2010-03-28
> 2010-03-30
>
> As you can see, the dates listed are not constant e.g missing 2010-03-29 as
> a example.  For our query like SELECT check_in_date FROM bookings how would
> I know to automatically insert a missing date like 2010-03-29 between the
> date range I search ?
>
> Thanks,
> Neil
>



-- 
-
Johnny Withers
601.209.4985
joh...@pixelated.net


Populating dataset

2010-03-25 Thread Tompkins Neil
Hi,

We have a table which contains the following sample of information

2010-03-20
2010-03-21
2010-03-22
2010-03-23
2010-03-26
2010-03-27
2010-03-28
2010-03-30

As you can see, the dates listed are not constant e.g missing 2010-03-29 as
a example.  For our query like SELECT check_in_date FROM bookings how would
I know to automatically insert a missing date like 2010-03-29 between the
date range I search ?

Thanks,
Neil