Thanks Ocean but I need a bit more detail...
I can't for some reason download the example you uploaded, the error I get is:
Parse error: parse error, unexpected T_STRING in /home/fmforums/public_html/uploads/1121985808-VIN.fp7 on line 9
So I'm not sure what you mean by a relationship between the first record and the last. How do I do that for each VIN? (there are more than 100,000 of them, each with an ARR, an OUT and any number of other Trans_types stored in separate records)
My guess is that you are suggesting that I should define a self-join relationship as follows
new_relationship::VIN=VIN
&
new_relationship::Trans_type=Trans_type
&
new_relationship::Constant_key=Constant_key
where constant_key is the new calculation field with the word "OUT"
how does this help me calculate the time elapsed between the record for a Trans_Type=ARR and Trans_type=OUT for the same VIN? (sorry if this is a dumb question, or if it is obvious from the file you uploaded, but I'm new to all of this, including relational databases)
Thanks
Brad