You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to join the OD and ORD tables to create a dataframe with two rows from the ORD table joined with the relevant information from the OD table, i.e. the following:
I admit I am not very experienced in relational databases, but I guess logically I should be able to get this by matching a foreign key from the ORD table that points to a primary key in the OD table (i.e. the parent node) and not the other way round. But instead, it is the parent table that is giving one single key that matches with only one of its children.
Thanks
The text was updated successfully, but these errors were encountered:
Here is a minimum reproducible example:
consider the
mre.xml
file (this is a modified version of an xbrl file that I cropped ):If I run
mre.xml %>% toRelational()
I get the following:I want to join the
OD
andORD
tables to create a dataframe with two rows from theORD
table joined with the relevant information from theOD
table, i.e. the following:I admit I am not very experienced in relational databases, but I guess logically I should be able to get this by matching a foreign key from the
ORD
table that points to a primary key in theOD
table (i.e. the parent node) and not the other way round. But instead, it is the parent table that is giving one single key that matches with only one of its children.Thanks
The text was updated successfully, but these errors were encountered: