Click here to Skip to main content
15,445,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a weak entity set as follows:
Medicine_reminder that have three attribute : start_date,dosage , and time
I am unable to define the partial key for this.

What I have tried:

I thought of taking it as multivalued composite attribute but that doesnt work
Updated 25-Jul-22 20:21pm

1 solution

Start_date is a partial key; the entity is not unique without the time (e.g. the prime key is date+time). The name medicine "reminder" provide a hint as to context.

Partial keys are often used in "starts with" type searches, and can make use of existing "full" (key) indexes for optimization.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900