PilotBaha wrote:I have been using hash files with no problem when the relationship was 1:1. Looks like in cases where I have 1:N I am not getting all the possible records I need to get if I was trying to get an inner join. Is there a way to get the output from a 1:N relationship between stream and hash files ?
No... that's not the way that hash files work.
![Confused :?](./images/smilies/icon_confused.gif)
You only get one record when you do the keyed lookup because that's all that is in the hash file! Hash files are 'destructive overwrite' by nature, based on the keys fields and last one in wins. When you wrote that second record with the same keys to the hash it
replaced the first record.
You are going to need to use a relational table (accessed via ODBC) or a UV table to get multiple records back from a single lookup.