I have a table structured as below,
tests
---------------------------
schoolId | name | isDeleted
I don't want to allow duplicate test name for an school if it is active i.e isDeleted = false
I am not sure how can I put unique constraint for fields taking only one value for boolean fields isDeleted=false