how to generate synthetic data for 2 tables with one-to-many relationship? I have the following problem, I have 2 tables of a bank and I was asked to make up the data.
Table 1 corresponds to the table where the credit card sales information is:
Sales_id
, Product_ID
, Sales_Date
Table 2 has to contain the data of the transactions that the customers make to pay the bank once they get their card:
Quota_ID
, Sales_ID
, Quota_Value
, Quota_Date
The problem is that the values generated in table 2 must depend on the date the card was sold, since the transactions of the quotas must be after the bank gave the card to the customer, does anyone have an idea of how I can generate this data in a synthetic way?
Table 1 enter image description here
Table 2