Question from the SQL Data Design test

A primary key can be represented on multiple columns.

Expert

THIS BLOCK IS THE SAME FOR ALL QUESTIONS

You must design a landscaper marketplace.

A person can register as a landscaper. She then chooses the services she offers from a pre-established list. She then declares - by selecting on a calendar - her availability (a start date and an end date, the days are always whole).

Another person can register on the site as a client. She can then select the service or services she is looking for. A list of landscapers is then presented to her with a filter that allows only landscapers available for certain days / periods to be presented.

If the client finds an adequate landscaper, he can then select the dates he actually needs and then place an order.

All quiz questions refer to this problem.

####Two important constraints are added to answer the questions:

No data redundancy is tolerated.

We will consider the storage of structured data (table, hash, json, etc.) in a single data field impossible.

Check the true statements regarding SQL key constraints:

Author: InconnuStatus: PublishedQuestion passed 581 times
Edit
1
Community Evaluations
developer avatar
Arnaud
05/09/2023
la rĂ©ponse "Une clef primaire est unique par table" me semble mal formulĂ©e et prĂȘte Ă  confusion. On peut la comprendre comme "est ce qu'on peut dĂ©finir plusieurs clefs primaires sur une mĂȘme table" alors qu'ici je pense qu'on parle de la possibilitĂ© d'avoir la mĂȘme valeur de la clef primaire pour 2 tuples.