G
Guest
I have a really cumbersome problem, if someone can solve this one you really
should get the Nobel Prize…
I have a table that has 3 fields containing dates. Let’s call them “Dateâ€,
“Date-1†and “Date+1â€, i.e. in “date†there is e.g. 2005-06-02, then the date
in “date-1†is 2005-06-01†and so on i.e. there can never be the same date in
the same row. The table also includes other text fields.
Now I would like to have a table that summarizes these three fields so I get
one field that sort the dates chronologically like:
New Field 1 New Field 2
2005-06-01 5
2005-06-02 8
…
In another field I would like to have the number of “hits†(as in new field
2 above) this specific date gave when searching within all the three fields
as mentioned in the beginning. I.e. no matter if the date (e.g. 2005-06-02)
is in the “dateâ€, “date-1†or “Date+1†field I want it to be grouped in to
the row for 2005-06-02 and counted. This means that each row from the
beginning (that contains 3 different dates) must be included in three
different rows in the new table because the row with, e.g. 2005-06-02 in the
“date†field will be included in the new rows for 2005-06-01, 2005-06-02 and
2005-06-03.
Does anyone understand what I want to do and does anyone know how to do it?
Can I give you some more information to help you understand?
Andreas
should get the Nobel Prize…
I have a table that has 3 fields containing dates. Let’s call them “Dateâ€,
“Date-1†and “Date+1â€, i.e. in “date†there is e.g. 2005-06-02, then the date
in “date-1†is 2005-06-01†and so on i.e. there can never be the same date in
the same row. The table also includes other text fields.
Now I would like to have a table that summarizes these three fields so I get
one field that sort the dates chronologically like:
New Field 1 New Field 2
2005-06-01 5
2005-06-02 8
…
In another field I would like to have the number of “hits†(as in new field
2 above) this specific date gave when searching within all the three fields
as mentioned in the beginning. I.e. no matter if the date (e.g. 2005-06-02)
is in the “dateâ€, “date-1†or “Date+1†field I want it to be grouped in to
the row for 2005-06-02 and counted. This means that each row from the
beginning (that contains 3 different dates) must be included in three
different rows in the new table because the row with, e.g. 2005-06-02 in the
“date†field will be included in the new rows for 2005-06-01, 2005-06-02 and
2005-06-03.
Does anyone understand what I want to do and does anyone know how to do it?
Can I give you some more information to help you understand?
Andreas