Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Tanisha_36
Contributor II
Contributor II

Is PK is the one through which we associate between tables

hello
i have two table one A:- with oid,Order date,Shipped date,delivery date,category
and another with B:- Category,date,target,KPI

I know in table A oid is PK but oid cant communicate with tale B
so in such cases how should I proceed

Thank you in advance

 

Labels (2)
1 Reply
marcus_sommer

I think you could associate the tables per category and/or combined with any of the date-fields, maybe like:

category & '|' & date as KEY

Another approach could be to concatenate both tables because the data are quite the same - just the direction of the current- vs. target-data is reversed. Having a different granularity like date- + article-level against a month- and category-level is not a big challenge. Concatenating has the benefits of being very simple and avoiding any trouble with NULL and/or missing key-values on any side.