Oracle Consulting Oracle Training Oracle Support Development
Home
Catalog
Oracle Books
SQL Server Books
IT Books
Job Interview Books
eBooks
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
 Phone
 800-766-1884
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

Privacy Policy

 

 
 

Case Insensitive Sorts - THE EASY WAY!

Article by Rampant Author Brian Carr

I'm writing this solution for everyone having issues doing case insensitive sorts in Oracle 9i and Oracle 10g.

I was getting results in the following manner:
This will return results in the following manner:
ACME
BAKER Supply
Acme
Baker Supply
etc...

All the solutions I have found on the Internet have you setting a session parameter in SQL Plus. Well that's fine if I'm having my users run their queries in SQL Plus.

I needed a solution that works in Oracle Reports and Discoverer, etc.

I found doing an order by in the following way:
order by NLS_UPPER(COL1, 'NLS_SORT = GENERIC_BASELETTER')

This will return results in the following manner:
Acme
ACME
Baker Supply
BAKER Supply
etc...

 

 

 

 

 

   

 Copyright © 1996 -2017 by Burleson. All rights reserved.


Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks