Hi,
Do you know about Master detail table structure?
You can make one detail table with your Medicine_id. That table can be like this :
TableName : Medicine_Components_Details
1. MCDID(PK)
2. Medicine_id
3. Component_id
So here you can get all Components for 1 Medicine.
I hope this information help you.
Thanks,
Viprat