Hi, I'm designing a sales database.
But I have a problem. I need that when inserting data in my table, it looks like this:
Table detail_sales
Now, the id of my sale_file has to travel to my sale table as a foreign key:
The problem is that to insert data in my table detail_sales the id does not have to be repeated, because it is the primary key, and only as a primary key I can send it to the other table. I would appreciate any suggestions.