# \#constraints

**URL:** https://forum.datacebo.com/tag/constraints/2.md

[Latest](https://forum.datacebo.com/latest.md) · [Categories](https://forum.datacebo.com/categories.md) · [Tags](https://forum.datacebo.com/tags.md)

---

## [\[Resolved\] New way to add constraints](https://forum.datacebo.com/t/resolved-new-way-to-add-constraints/301)

<div class="topic-metadata">

**Author:** [@epicvu](https://forum.datacebo.com/u/epicvu)\
**Replies:** 6\
**Last updated:** [January 26, 2026, 9:02pm UTC](https://forum.datacebo.com/t/resolved-new-way-to-add-constraints/301 "2026-01-26T21:02:24Z")

</div>

Hey I’d like to ask a little quick question about the new way to add constraints. I was used to add constraints using dictionnary and saw the note saying that I have to use sdv.cag (I do now) but some of the constraints…

---

## [\[Resolved\] Cross-table constraints](https://forum.datacebo.com/t/resolved-cross-table-constraints/220)

<div class="topic-metadata">

**Author:** [@ecastaner](https://forum.datacebo.com/u/ecastaner)\
**Replies:** 3\
**Last updated:** [January 26, 2026, 8:53pm UTC](https://forum.datacebo.com/t/resolved-cross-table-constraints/220 "2026-01-26T20:53:19Z")

</div>

@giovanni.circo could you please add some details on the question you have regarding this topic? Thanks

---

## [\[Resolved\] Add a constraint for null values (that occur together)](https://forum.datacebo.com/t/resolved-add-a-constraint-for-null-values-that-occur-together/228)

<div class="topic-metadata">

**Author:** [@neha](https://forum.datacebo.com/u/neha)\
**Replies:** 5\
**Last updated:** [January 26, 2026, 8:42pm UTC](https://forum.datacebo.com/t/resolved-add-a-constraint-for-null-values-that-occur-together/228 "2026-01-26T20:42:39Z")

</div>

Let’s use this topic to discuss this Q from @yuntien.lee: Can you also advise how to set constraints e.g. if AdmitType is null then AdmitDate is null?

---

## [\[Resolved\] Inequality constraint for 2 datetime columns](https://forum.datacebo.com/t/resolved-inequality-constraint-for-2-datetime-columns/135)

<div class="topic-metadata">

**Author:** [@anna.popovychenko](https://forum.datacebo.com/u/anna.popovychenko)\
**Replies:** 4\
**Last updated:** [February 22, 2024, 9:24am UTC](https://forum.datacebo.com/t/resolved-inequality-constraint-for-2-datetime-columns/135 "2024-02-22T09:24:07Z")

</div>

Hello, I’m trying to apply below constraint for 2 datetime columns: subtr\_close\_date\_ineq\_constr = { 'constraint\_class': 'Inequality', 'table\_name': 'SubtrajectData', 'constraint\_parameters': { …
