Re: euEDB / euSQL primary key problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

duke normandin wrote:
> 
> hey....
> 
> I need to have both keys in a 2-key table form a "composite" primary key.
> Can't
> seem to be able to convince euEDB to accept that scenario. Anybody know if
> this
> feature is supported in euEDB / euSQL ?
> 
> Example:
> 
> Students Table           Participants Table            Activities Table    
>     
> Name   | ID*             ID*   |  Activity*            Activity*  |  Cost
> 
> You see how the fields in the "Participants" table are really "foreign" keys
> that _together_ constitutes the table's unique key? TIA...

You need to put ID and Activity into a sequence, and make that the key.
For eusql, you'd need to make them 'sub-fields.'

PK.ID
PK.Activity

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu