![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to figure out how to identify records that contain the text of other records. example: I have a table called PHRASES, with a field called PHRASE . sample records: recid=1 phrase=bob recid=2 phrase=bob barker recid=3 phrase=bob barker game show recid=4 phrase=bob game I need to establish a relationship (note: I need a relationship, NOT a script, a script approach is useless to me) that would identify the record (any record) whose PHRASE contains the PHRASE in the first record. so, following the same example: sample records: recid=1 parentid=null phrase=bob recid=2 parentid=1 phrase=bob barker recid=3 parentid=2 phrase=bob barker game show recid=4 parentid=1 phrase=bob game the idea here is to identify a lexical chain that will allow me to on the fly determine how to short circuit a lengthy process. if for exampe, record 2 has no results in my theoretical processing, then neither will 3... if 1 has no results, neither will 2, 3, or 4: 2 -- 3 / 1 \ 4 to be really basic, I'm trying to get around filemaker's shortcoming of now allowing CONTAINS as an operator in the relationship. I got REAL close by using a < relationship and sorting the right hand side of the join by PHRASE descending,, but no cigar, the previous phrase doesn't necessarily contain the phrase in question, it's simply lower alphabetically. any ideas folks? thanks, b |
![]() |
| Thread Tools | |
| Display Modes | |
| |