![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi guys; I have a hierarchical structure represented in a database with child nodes having a foreign key to their parent. I'm wondering how to create a constraint on uniqueness of a "name" attribute on that entity, but the uniqueness should only be between siblings. In other words, duplicate names are allowed as long as the instances don't share the same parent. Could someone in the know point me in the right direction? Thanks in advance. |
#6
| |||
| |||
|
|
Hi guys; I have a hierarchical structure represented in a database with child nodes having a foreign key to their parent. I'm wondering how to create a constraint on uniqueness of a "name" attribute on that entity, but the uniqueness should only be between siblings. In other words, duplicate names are allowed as long as the instances don't share the same parent. Could someone in the know point me in the right direction? Thanks in advance. |
#7
| |||
| |||
|
|
Hi guys; I have a hierarchical structure represented in a database with child nodes having a foreign key to their parent. I'm wondering how to create a constraint on uniqueness of a "name" attribute on that entity, but the uniqueness should only be between siblings. In other words, duplicate names are allowed as long as the instances don't share the same parent. Could someone in the know point me in the right direction? Thanks in advance. |
![]() |
| Thread Tools | |
| Display Modes | |
| |