meenakshi
3 years agoNew Contributor
Finding Duplicate data existing in Database
I have 2 fields called Product_ID and Partner Product_ID where lets say product ID is P-001 and Partner product ID is P-P-0001 which is already existing in database with this combination and again if i try to insert same combination , it should throw error as duplicate. And if the combination not repeated then it should insert data to database.
Partner Product ID- Product ID
P-P-000001-P-0000001
P-P-000002-P-0000002
P-P-000003-P-0000001
Product ID can be repeated any times, but partner product ID should not be repeated and both of these fields combination should be unique.
Please help with above scenario.
@alchemiz @Dheeraj