ices-tools-dev / RDBES

The public repository of the RDBES development.
11 stars 5 forks source link

OSsequenceNumber & LEsequenceNumber #126

Closed luciazarauz closed 3 years ago

luciazarauz commented 3 years ago

We need confirmation about the level of aggregation of OSsequenceNumber & LEsequenceNumber

In our data we have:

Then, each OSsequenceNumber has to be unique for each SDid (fleet), or for each OSstratumName (fleet + quarter)?

And LEsequenceNumber, has to be unique for each OSid? or also SDid?

Thank you!

HenrikK-N commented 3 years ago

In the OnshoreEvent OS table there are two different combinations of fields that have to be unique for each SamplingDetail (SDid) parent (see the 3rd column C in the data model header Unique combination of fields UK1 and UK2):

The Unique key UK1: SDId, OSlocode, OSLocationName, OSsamplingDate, OSsamplingTime

The Unique key UK2: SDId, OSsequenceNumber

Then, each OSsequenceNumber has to be unique for each SDid (fleet), or for each OSstratumName (fleet + quarter)?

Answer: The OSsequenceNumber has to be unique for each SDid (fleet).

And then LEsequenceNumber will be unique for each OSid?

Answer: It will not automatically be unique for each OSid, you have to upload a unique LEsequenceNumber for each record under one specific OnshoreEvent (OSid).