# sampleRelationships table

**URL:** <https://odm.discourse.group/t/samplerelationships-table/158>\
**Category:** Support\
**Tags:** odm-v2-rc2\
**Created:** [July 17, 2024, 2:06pm UTC](https://odm.discourse.group/t/samplerelationships-table/158 "2024-07-17T14:06:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wastewater\_belgium](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@wastewater\_belgium](https://odm.discourse.group/u/wastewater_belgium)\
**Post date:** [July 17, 2024, 2:06pm UTC](https://odm.discourse.group/t/samplerelationships-table/158/1 "2024-07-17T14:06:01Z")

</div>

Hello,

I noticed that sampleRelationshipID is wrongly reported as integer instead of varchar in the ERD.

In this table for relationshipID, in the dictionary here are the follwing possibilities: child, colocated, fieldReplicate, msd, labDuplicate, lcsd while in the documentation it is mention that only child or replicate is possible.

Finally does colocated means two samples or more taken at the same time at the same site (with the same method)?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![matthomson](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matthomson](https://odm.discourse.group/u/matthomson)\
**Post date:** [July 23, 2024, 9:38pm UTC](https://odm.discourse.group/t/samplerelationships-table/158/2 "2024-07-23T21:38:00Z")

</div>

Hello, and apologies for the slow reply!

To go through the issues in order:

1. `sampleRelationshipsID` is actually an integer - or certainly can be. This field is just a provisional ID to create a random and unique PK for each row of the sample relationships table. The actual relationship is recorded in the `relationshipID` field. We may change the data type to archer in version 2.3, though, to increase the possibility of unique codes for this field.

2. Thank you for pointing this out! I think that our dictionary is expanding more quickly than the documentation. I’ll make a point to update this part of the documentation soon. I might need to circle back to you on this question.

3. Great questions, and apologies for not being more clear in the description of the “co-located” option. That will be updated for our next release. But a co-located sample is defined as a second or multiple sample(s) collected at or near (one-half to three feet away) the same selected sample location to determine local variability of a given analyte. Analytical results from co-located samples can be used to assess site variation, but only in the immediate sampling area. Samples at the same location but using different media (i.e. water and air samples, soil and sediment samples) are also classified as co-located samples. Two or more samples taken at the same time and the same site with the same method would be a field replicate, I believe. Does that follow the same terms and definitions you are using?

Thank you again, and please let me know if there are any follow up questions or issues.

---

<div class="post-metadata">

**Author:** ![wastewater\_belgium](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@wastewater\_belgium](https://odm.discourse.group/u/wastewater_belgium)\
**Post date:** [July 24, 2024, 12:36pm UTC](https://odm.discourse.group/t/samplerelationships-table/158/3 "2024-07-24T12:36:05Z")

</div>

Thank you for your reply. All is clear for me now.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/odm/original/1X/34f6410d4262a308493f8c3b977a49666a3a2929.png) [@system](https://odm.discourse.group/u/system)\
**Post date:** [July 25, 2024, 12:36pm UTC](https://odm.discourse.group/t/samplerelationships-table/158/4 "2024-07-25T12:36:08Z")

</div>

Closed on July 25, 2024, 12:36pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
