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 9131563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:09:41+00:00 2026-06-17T08:09:41+00:00

This is perhaps too simple, but I can’t seem to figure this one out.

  • 0

This is perhaps too simple, but I can’t seem to figure this one out.

I have a simple SELECT DISTINCT statement which returns two rows: CODE and DESCRIPTION

They are identical like this:

00065        Stmt to Party 2-4 pgs
00065        Stmt to Party 2-4 pgs

However, the DISTINCT in the SELECT statement never filters the duplicate one out. I tried pasting these two values in Excel 2010 and attempted to use the “Remove duplicate” function, no use; I also tried a simple formula like this: =IF(D337=D338,”X”,”Y”) and the result was always “Y”.

AutoFilter in Excel also indicated that these strings are different.

The lengths of the strings are equal, as tested with SQL Server LEN(DESCRIPTION) function. There were no invisible special characters in them either.

How do I find out what is different between these two strings? Please note that I used Excel for testing/troubleshooting purpose only.

Please help. Thank you.

  • 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-06-17T08:09:42+00:00Added an answer on June 17, 2026 at 8:09 am

    Use an offline hex editor, or an online facility such as http://www.string-functions.com/string-hex.aspx and compare the bytes in the two strings. Then you should see if they are identical. (From comment above)

    You could then do a manual query where you update the database by either deleting or updating the string to get the value consistent.

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

Sidebar

Related Questions

I have an ObjectDataSource (but perhaps this question is the same for all kinds
This is a very simple, probably too simple question but I'm afraid my limited
Has anyone ever heard of overriding too many classes in Java? Perhaps this issue
Heads starting to hurt. I think I dropped into this too fast... Perhaps someone
This is perhaps more of a discussion question, but I thought stackoverflow could be
Perhaps this is an effect of installing the new 4.5 beta, but my simulator
Perhaps this question has been asked elsewhere, but I'm unable to find it. With
Perhaps this has something to do with it being the mainForm, but I'll ask
OK, this is perhaps stupidest question ever but bear with me.... How to make
I'm new to visual studio, so perhaps this is something easy... but I've had

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.