This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding sorting

 
santhosh kumar vk
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to sort column which have some special characters like $#%## but i am getting wrong results, Could you please tell me how to short.

Thanks,
Santhosh Kumar V.K
 
Martin Vajsar
Sheriff
Pie
Posts: 3747
62
Chrome Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried? What does "wrong result" mean?

There are various lexicographic rules, and their ordering of these special characters might differ. Oracle has a session parameter called NLS_SORT which determines the lexicographic rules used for sorting and affects all queries in the session. Then there is a NLSSORT function that can be used to override the session-wide setting for a single query.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic