Multiple primary keys possible?

Questions and answers regarding general SQL and backend databases

Multiple primary keys possible?

Postby Guest » Mon Oct 20, 2003 12:50 pm

Hello,

We have a lot of projects which have documents/records labeled by certain codes and the only thing which differences records between projects is the project_id. At the same time duplicate record_labels
in one project should be avoided.

At the moment the user is forced to select project first and then
the rest of the projects are filtered out. But I canM-4t use record_label
as a primary_key, because all projects can and will have identical values.
Filtering obviously doesn't make record_labels unique.

I think two primary keys: project_id and record_label could solve this problemM-^Eare there any possibilities?


-Sven
Guest
 

Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 6 guests

cron