Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 830683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:05:02+00:00 2026-05-15T04:05:02+00:00

I got a table with columns: author firstname, author lastname, and booktitle Multiple users

  • 0

I got a table with columns: author firstname, author lastname, and booktitle
Multiple users are inserting in the database, through an import, and I’d like to avoid duplicates.
So I’m trying to do something like this:
I have a record in the db:
First Name: “Isaac”
Last Name: “Assimov”
Title: “I, Robot”

If the user tries to add it again, it would be basically a non-split-text
(would not be split up into author firstname, author lastname, and booktitle)
So it would basically look like this:
“Isaac Asimov – I Robot”
or
“Asimov, Isaac – I Robot”
or
“I Robot by Isaac Asimov”

You see where I am getting at?

(I cannot force the user to split up all the books into into author firstname, author lastname, and booktitle, and I don’t even like the idea to force the user, because it’s not too user-friendly)

What is the best way (in SQL) to compare all this possible bookdata scenarios to what I have in the database, not to add the same book twice. I was thinking about a possibility of suggesting the user: “is THIS the book you are trying to add?” (imagine a list instead of the THIS word, just like on stackoverflow – ask question – Related Questions.

I was thinking about

 soundex

and maybe even the

 like

operators, but so far i didn’t get the results i was hoping.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:05:03+00:00Added an answer on May 15, 2026 at 4:05 am

    You can implement significantly better algorithms for fuzzy matching than soundex/difference, take a look at Beyond SoundEx – Functions for Fuzzy Searching in MS SQL Server.

    You could also look at implementing a Full Text catalog and using the “search engine” style FREETEXT() which:

    Is a predicate used in a WHERE clause
    to search columns containing
    character-based data types for values
    that match the meaning and not just
    the exact wording of the words in the
    search condition

    Depending on what your doing you could also perhaps use an ISBN web service to get normalized data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got table with two columns: name and grade. It looks sth like this:
I got table with 3 columns (Primary)id, type, name. I am inserting data into
I've got a table with a few boolean columns like: IsProductionWorker, IsMaterialHandler, IsShopSupervisor, etc.
In SQL Server, if I got a table with like 20 columns and I
I've got a table where the columns that matter look like this: username source
Ive got table with columns: PlayerId Points I would like to get 100 best
The problem is: I have got a table of columns (A, B, C) where
I've got a table with several columns making up the primary key. The nature
I've got two tables: TABLE A (columns: FirstValue, SecondValue, SeatNumber) currently empty TABLE B(1
I’ve got a table with two columns Time and Login, showing when a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.