Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Use SQL to identify duplicate records

Featured Replies

I have a database that accepts first and last name entries for a primary person and a secondary person.  However, there is a problem that sometimes the secondary person comes back looking to be entered as a separate primary person, which is not permitted.  However, I do not have any data validation or verification to prevent this.  When a new record is created, would I be able to use SQL to check the first and last name combinations entered for the primary and the secondary persons against the names previously entered in the database and create a dismissible dialog popup giving a warning when duplicate names are entered?  Ideally the dialog box would also give a link to go to the record where the duplicate name was previously entered to verify that the individual is the same.

Why use SQL for this?

I'd also point out that FirstName / LastName isn't a unique combination anyway - there are several Peter Booth's in my wider family for a start...

If I were to go down this path, then a simple search on FirstName / LastName with a found count of > 0 should suffice

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.