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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:24:12+00:00 2026-05-13T22:24:12+00:00

I am not able to make this out: Between eliminates use of >= and

  • 0

I am not able to make this out: Between eliminates use of >= and <=

…but when i tried this query:

SELECT *  
  FROM names 
 WHERE name >= 'Ankit' 
   AND name <= 'P'

…it gives output:

name
------
Ankit
Mac
Bob

When I tried:

SELECT *  
  FROM names  
 WHERE name BETWEEN 'Ankit' AND 'P'

…it gives output:

name
------
Ankit

Can you explain this why?

  • 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-13T22:24:12+00:00Added an answer on May 13, 2026 at 10:24 pm

    First, Oracle VARCHAR2 type is case sensitive.

    Second, check that you do not have spaces in the beginning of name like this:

    " Bob"
    " Mac"
    

    Use trim function to check if this causes the problem:

    SELECT *  
    FROM names  
    WHERE trim(name) BETWEEN 'Ankit' AND 'P'
    

    If this does not help, check that language and sort order are correct for your database.

    Edit:
    Since above advice did not solve your problem, you could try following:

    1. Maybe you have some other non-printable characters in field. Use Oracle DUMP function to check:

      SELECT DUMP(name), name FROM names
      

      You should get something like this:

      Typ=1 Len=3: 66,111,98   Bob
      ...
      

      Verify that Len is correct length.

    2. Check NLS parameters so that they are not inadvertently changed to something that does not work for your database:

      SELECT * FROM NLS_SESSION_PARAMETERS
      SELECT * FROM NLS_DATABASE_PARAMETERS
      SELECT * FROM NLS_INSTANCE_PARAMETERS
      

      Check results of these three queries and verify that parameters on sort, language and character set are correct.

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

Sidebar

Related Questions

not able to get this, can someone help for this LINQ query? select col1,
I'm not being able to make this line work with Tk import os while(1):
I am not able to make a clear decision on this one. I am
I am not able to make the nested elements sortable in jQuery UI. I
Not able to download artifacts from central maven repository. <mirrors> <!-- mirror | Specifies
Im not able to load the page with circlepageindicator. This is the xml <FrameLayout
SVN directories are conveniently easy to move between computers, but this can occasion version
Not able to store all binary data values into sqlite3 table using QT. For
I am not able to understand how to rotate the image. I am trying
Hi I am not able to capture the screen shot using selenium webdriver .

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.