Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2008, 08:00 AM
Registered User
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to anantdev
Default having problem with Between operator

i'm using SQL Server 2005 :

i wrote one query like :

select invoice_num from IM_INVOICE where invoice_num between 'a' AND 'izzzzzzzzzzz';


Ideally we are expecting the record from 'a' to 'i'. & all should be small letter . BUT we are getting the record that is in CAPITAL LETTER as well.But here we are comparing only with Small Letter.

Anyway when we are comparing like bellow:
select invoice_num from IM_INVOICE where invoice_num >= 'a'
                                AND invoice_num <= 'izzzzzzzzzzz';

The problem is still the same. I'm geting the invoices that is in Capital Letter along with small letter.


Could anyone help me out.....? i'm Struggling alot with this..!

Thanks & Regards
Anant
 
Old May 26th, 2008, 08:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Thinking out loud, Sql is making the comparation in text and not binary (that is what you want). I don't have a clue about it, but you should investigate that way...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use like operator thillaiarasu SQL Server 2000 4 April 23rd, 2010 09:47 AM
=== operator in c# surendraparashar C# 2005 8 November 8th, 2007 05:14 AM
Invalid operator for data type. Operator equals di Pusstiu SQL Server 2000 2 August 10th, 2007 04:51 AM
Use of return operator. PC BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 3 July 1st, 2005 09:54 AM
Problem with Mod operator LordBeholder VB How-To 2 June 16th, 2004 06:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.