how to query related data by using a foreign key

submitted data to the 2  different tables  by using process model write to  database, where 1 data type  PK  is the FK  for second table. but I can't use both the  tables in record type, and in summary view, I don't know how to query data  form the to fields by using a foreign key... ... please  explain about how query related data from database ,when i have a foreign key column..,( apart from creating a view in database, please suggest me how to do it in expression rule ) .

  Discussion posts and replies are publicly visible