A
ardi
Hi,
I have problem to make query for joining 2 table,
first table (tblA), holds num data which associate with date, while
second table
have date with interval 1 day and field site
for example table wich will be joined ,
tblA TblB
date num site date2 site
1/1/1990 6 x 1/1/1990 x
1/4/1990 7 x 1/2/1990 x
1/9/1990 9 x 1/3/1990 x
1/11/1990 6 x 1/4/1990 x
1/13/1990 11 x 1/5/1990 x
1/15/1990 8 x 1/6/1990 x
etc..
would return from joining table, like :
date2 num site date
1/1/1990 6 x 1/1/1990 * date2 must be closest
(date2-date1 minimum)
1/2/1990 6 x 1/1/990 to date 1
1/3/1990 6 x 1/1/1990
1/4/1990 7 x 1/4/1990
1/5/1990 7 x 1/4/1990
1/6/1990 7 x 1/4/1990
....
1/14/1990 11 x 1/13/1990
1/15/1990 8 x 1/15/1990
note i have created query for that but it running very-very slow, do
you have any better way for
this ?
thanks
ardi
I have problem to make query for joining 2 table,
first table (tblA), holds num data which associate with date, while
second table
have date with interval 1 day and field site
for example table wich will be joined ,
tblA TblB
date num site date2 site
1/1/1990 6 x 1/1/1990 x
1/4/1990 7 x 1/2/1990 x
1/9/1990 9 x 1/3/1990 x
1/11/1990 6 x 1/4/1990 x
1/13/1990 11 x 1/5/1990 x
1/15/1990 8 x 1/6/1990 x
etc..
would return from joining table, like :
date2 num site date
1/1/1990 6 x 1/1/1990 * date2 must be closest
(date2-date1 minimum)
1/2/1990 6 x 1/1/990 to date 1
1/3/1990 6 x 1/1/1990
1/4/1990 7 x 1/4/1990
1/5/1990 7 x 1/4/1990
1/6/1990 7 x 1/4/1990
....
1/14/1990 11 x 1/13/1990
1/15/1990 8 x 1/15/1990
note i have created query for that but it running very-very slow, do
you have any better way for
this ?
thanks
ardi