I want to use as primary key, the primary key of another table just when a condition is true.
Example
TBL1 has PK identity IdTest and two columns Nome Varchar and HasValue Boolean
For all the HasValue True I want to create this other table TBL2 that will have IdTest as PK not identity (that is the same as TBL1) and a column Note Varchar.
Please help me as soon as u can