Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have two tables orders and customers,
I am trying to add the orders table as the lookup for the Order_Id column in Customers
My condition is Cust_Id=Ord_Cust_ID
I am getting a Primary Key Violation Error while Running
The customer table Key (Natural or business key) is customer_id. By performing a lookup to orders - Compose will generate a left join - thereby creating multiple records with the same customer_id value. Which then triggers the PK validation check. (Multiple records for the NK).
Can you explain a little further what you are trying to do here?
Are you trying to get the last order_id for each customer or ?
If you are trying to relate orders to customer - then the relationship should be defined on the order table (with customer as the parent). This screenshot may show creating the relationship in the wrong direction ?