Hi,
How do you implement unique constraint on 2 columns.i.e consider i have 3 column id,name and active.If the there is a row in a table with 1,apple,true than it should not allow the entry of a row with values 2,apple,true.Bu t if the there is already row with 1,apple,false than it should allow the entry of 2,apple,true.He re the constraint must be applied on name and active column.
Thank you.
How do you implement unique constraint on 2 columns.i.e consider i have 3 column id,name and active.If the there is a row in a table with 1,apple,true than it should not allow the entry of a row with values 2,apple,true.Bu t if the there is already row with 1,apple,false than it should allow the entry of 2,apple,true.He re the constraint must be applied on name and active column.
Thank you.
Comment