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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:36:18+00:00 2026-05-23T19:36:18+00:00

I am working on a query so that I can compare a word read

  • 0

I am working on a query so that I can compare a word read from a file name to another word that is already predefined in the code and assign it a numeric value.

However, the issue I am running into is trying to ignore the case of the name, because the name is being read from a file the case could change and then would not match the predefined value I have set. Is there any easy way to ignore the capitalization other than putting every possible value in the case?

code snipit:

NumberVal = CASE   
              WHEN Name = 'Bond' OR Name = 'BOND' OR Name = 'bond' THEN 16   
            END
  • 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-23T19:36:19+00:00Added an answer on May 23, 2026 at 7:36 pm

    SQL Server be default ignores case so someone has changed the setting ot youdidn’t know

    If it is now case sensitive, just use UPPER and forget collation

    CASE   
      WHEN UPPER(Name) = 'BOND' THEN 16   
     END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a SQL query that reads from a SQLServer database to
I'm trying to get a query working that takes the values (sometimes just the
Working with a SqlCommand in C# I've created a query that contains a IN
I'm working with a MySQL query that writes into an outfile. I run this
I have a Linq to SQL query that was working just fine with SQL
I'm working on an application for work that is going to query our employee
I'm working on a sheet that accesses a legacy data source via MS Query.
I've been working on optimizing a query and have ran into a situation that's
In a SQL Server 2005 database I'm working on this query: select * from
I am currently working with 2 sql 2000 servers one I can query but

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.