Jump to content

Self-Join Relationship for finding Duplicate Value with "OR" condition


dav1089
 Share

This topic is 2326 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

I have two tables: Companies and dupcheck_companies...Self-joined with Companies:company = dupcheck_companies::company AND Companies:pk != dupcheck_companies::pk

And attached script trigger with layout (onrecordcommit) to show custom dialog if  duplicate key (serial of table occurrence not empty) is found .. it works fine when duplicate company name value is found , but what if I want to check another field (phone number) for duplicates , I think it would be better if I could self-join with an OR condition instead of AND , but don't know how

 

Please help!

 

Link to comment
Share on other sites

This topic is 2326 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.