In QlikView, if I try to include these in a load using a query like the following:
sql select marriage_id, primary_person_id, seconary_person_id, marriage_start_date, marriage_end_date from marriage_table;
sql select person_id as primary_person_id, person_id as seconary_person_id, first_name, middle_name, last_name, date_of_birth from person_table;
I will get an error about how I could be leading myself to have inaccurate data, as QlikView has two potential paths to get to PERSON_TABLE. Which makes sense, but I really really hate the idea of duplicating the selects and tables like the following.
sql select marriage_id, primary_person_id, seconary_person_id, marriage_start_date, marriage_end_date from marriage_table;
sql select person_id as primary_person_id, first_name, middle_name, last_name, date_of_birth from person_table;
sql select person_id as seconary_person_id, first_name, middle_name, last_name, date_of_birth from person_table;
Is there a better way to deal with this that I'm missing?