dbTalk Databases Forums  

Relating data

comp.databases.filemaker comp.databases.filemaker


Discuss Relating data in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Buckbuck
 
Posts: n/a

Default Relating data - 12-12-2011 , 04:34 PM






FM11
I have a Receivables database. Each Receivables has a date field,
Date_Payment, indicating the payment date. I also have a Foreign
Exchange database showing the midday exchange rate for US and Cdn
dollars. The Forex table has, Date, US to Cdn, Cdn to US, and a kp_ID
field. I want each Receivables record to access the appropriate forex
rate given the Date_Payment. How do I do this?

Thanks
Matthew

Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Relating data - 12-12-2011 , 06:16 PM






In article
<cc3b10b9-4346-4879-a215-ced0a57e74ad (AT) k5g2000pra (DOT) googlegroups.com>,
Buckbuck <buck.matthew74 (AT) yahoo (DOT) com> wrote:

Quote:
FM11
I have a Receivables database. Each Receivables has a date field,
Date_Payment, indicating the payment date. I also have a Foreign
Exchange database showing the midday exchange rate for US and Cdn
dollars. The Forex table has, Date, US to Cdn, Cdn to US, and a kp_ID
field. I want each Receivables record to access the appropriate forex
rate given the Date_Payment. How do I do this?

Thanks
Matthew
Create a Relationship between the two Tables.

Rel_ExchangeRate
Match record in Receivables to records in Forex
when Date_Payment = Forex:ate

Assuming both are Fields are of type Date.

Then you can use the related exchange rate in the Receivables calculations.
e.g.
USPrice = CdnPrice * Rel_ExchangeRate::Cdn_to_US


Helpful Harry )

Reply With Quote
  #3  
Old   
matthew
 
Posts: n/a

Default Re: Relating data - 12-14-2011 , 12:15 AM



On Dec 12, 4:16*pm, helpfulha... (AT) busyworking (DOT) com.zz (Helpful Harry)
wrote:
Quote:
In article
cc3b10b9-4346-4879-a215-ced0a57e7... (AT) k5g2000pra (DOT) googlegroups.com>,

Buckbuck <buck.matthe... (AT) yahoo (DOT) com> wrote:
FM11
I have a Receivables database. Each Receivables has a date field,
Date_Payment, indicating the payment date. I also have a Foreign
Exchange database showing the midday exchange rate for US and Cdn
dollars. The Forex table has, Date, US to Cdn, Cdn to US, and a kp_ID
field. I want each Receivables record to access the appropriate forex
rate given the Date_Payment. How do I do this?

Thanks
Matthew

Create a Relationship between the two Tables.

* * Rel_ExchangeRate
* * * *Match record in Receivables to records in Forex
* * * *when Date_Payment = Forex:ate

Assuming both are Fields are of type Date.

Then you can use the related exchange rate in the Receivables calculations.
e.g.
* * * USPrice = CdnPrice * Rel_ExchangeRate::Cdn_to_US

Helpful Harry *)
I do not understand what you are suggesting. What do you mean by match
records, or moreover how do I do this? I want the Receivables table to
reference the Forex table when Date_Payment and Date_Forex are the
same. Can you elaborate/

Thanks
Matthew

Reply With Quote
  #4  
Old   
Buckbuck
 
Posts: n/a

Default Re: Relating data - 12-14-2011 , 10:52 AM



On Dec 13, 10:57*pm, Martin Ôrautmann <t-use... (AT) gmx (DOT) net> wrote:
Quote:
On Tue, 13 Dec 2011 22:15:27 -0800 (PST), matthew wrote:
*I do not understand what you are suggesting. What do you mean by match
*records, or moreover how do I do this? I want the Receivables table to
*reference the Forex table when Date_Payment and Date_Forex are the
*same. Can you elaborate/

Did you ever build any relation at all?

If no, please read the manual or get help from a local FMP developer.

It's really very easy to do, it's one of the basics of this relational
database. But it's lot of effort to explain it via a newsgroup without
knowing your level of knowledge.
Yes I have in fact. About one hundred across 10 TABLES. I have figured
it out myself. I was stymied by a misunderstanding of what I was
doing. If I may, you should have stopped your response at your first
question. Perhaps you have had a similar experience - not seeing the
obvious. My knowledge level? Self-taught, not that great but it seems
to be enough.

Matthew

Reply With Quote
  #5  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Relating data - 12-14-2011 , 02:31 PM



In article
<4bc3a724-b15d-4be6-a3ff-441a725a7527 (AT) 24g2000prd (DOT) googlegroups.com>,
matthew <matthew%reflectingdesign.com (AT) gtempaccount (DOT) com> wrote:
Quote:
On Dec 12, 4:16=A0pm, helpfulha... (AT) busyworking (DOT) com.zz (Helpful Harry)
wrote:

Create a Relationship between the two Tables.

Rel_ExchangeRate
Match records in Receivables to records in Forex
when Date_Payment =3D Forex:ate

Assuming both are Fields are of type Date.

Then you can use the related exchange rate in the Receivables
calculations.
e.g.
USPrice = CdnPrice * Rel_ExchangeRate::Cdn_to_US

I do not understand what you are suggesting. What do you mean by match
records, or moreover how do I do this? I want the Receivables table to
reference the Forex table when Date_Payment and Date_Forex are the
same. Can you elaborate/
I should have said to create a Relationship between the two Tables using
the Date fields.

"Match records" is simply the phrasing to relate records with matching
data. It is the easiest way to describe a Relationship definition and is
(paraphrased?) from the text that appears in the Define Relationship
window of older versions of FileMaker, before the rather silly tree
diagram was added.

Helpful Harry )

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.