D
Damir Dezeljin
Dear all.
I have two tables containing a Date column:
----
purchase_tbl:
date_clmn Date Short_Date
curr_clmn Number
other1_clmn Text
other2_clmn Text
...
change_tbl:
date_clmn Date Short_Date
curr_clmn Number
other3_clmn Text
...
currency_tbl:
curr_clmn Number
curr_text Text
----
The 'purchase_tbl' contains one or more daily records.
The 'currency_tbl' contains valid currencies.
The change_tbl contains exactly one record for each currency for each
month - the date is always the first day of the month (e.g. Apr 1 2005 /
EUR; Mar 1 2005 / EUR).
Now I would like to join 'purchase_tbl' and 'change_tbl' and so get
access to the change ration. There are basically two questions:
- How can I define TWO join criterias (date and currency)
- How can I 'ignore' a part of a certain field (day part of both
date_clmn should be ignored)
Thanks and best regards,
Dezo
I have two tables containing a Date column:
----
purchase_tbl:
date_clmn Date Short_Date
curr_clmn Number
other1_clmn Text
other2_clmn Text
...
change_tbl:
date_clmn Date Short_Date
curr_clmn Number
other3_clmn Text
...
currency_tbl:
curr_clmn Number
curr_text Text
----
The 'purchase_tbl' contains one or more daily records.
The 'currency_tbl' contains valid currencies.
The change_tbl contains exactly one record for each currency for each
month - the date is always the first day of the month (e.g. Apr 1 2005 /
EUR; Mar 1 2005 / EUR).
Now I would like to join 'purchase_tbl' and 'change_tbl' and so get
access to the change ration. There are basically two questions:
- How can I define TWO join criterias (date and currency)
- How can I 'ignore' a part of a certain field (day part of both
date_clmn should be ignored)
Thanks and best regards,
Dezo