Is it possible to combine 2 primary keys from 2 different table into 1 foreign key in another table? I have a table named product_food with food_id as primary key and product_drinks with drink_id as primary key and then I want to combine food_id and drink_id as a foreign key in my orders table as product_ID? Is that possible?
Share
There’s many ways you can solve it, from the top of my head: