Foreign keys only by specific attribute

Hello I want generate in the table foreign keys but  in original table this rows have column activate (true/false) and I want foreign key from this table only with activate=true
Is it any way how do this ?
The data from original table are generated too.

Tagged:

Answers

  • Hi @Tom1555 ,

    Thanks for you post!

    Just to make sure I'm understanding correctly what you're hoping to do - can you please provide more detail, perhaps the schema of your table as well as an example of what the data should look like?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.