DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Oracle (http://www.daniweb.com/forums/forum129.html)
-   -   Oracle Urgent - how to get only the upper case data (http://www.daniweb.com/forums/thread160160.html)

Anitha bala Nov 30th, 2008 10:24 pm
Oracle Urgent - how to get only the upper case data
 
hi,

I need to know how to get only the upper case currency from a table using oracle.


e.g:- data for currency will be as follows

USD
AUD
EUR
SGD
AUd
uSD
EuR

I need to get only the upper case currency among all the other currency such as
USD
AUD
EUR
SGD

what is the logic need to be used for it?

Thanks in advance

Anitha bala Dec 1st, 2008 12:56 am
Re: Oracle Urgent - how to get only the upper case data
 
Hi,

The following query gives all the data in upper case

select Currency_desc from tablename where upper(Currency_desc)=Currency_desc

thanks

Quote:

Originally Posted by Anitha bala (Post 747655)
hi,

I need to know how to get only the upper case currency from a table using oracle.


e.g:- data for currency will be as follows

USD
AUD
EUR
SGD
AUd
uSD
EuR

I need to get only the upper case currency among all the other currency such as
USD
AUD
EUR
SGD

what is the logic need to be used for it?

Thanks in advance


debasisdas Dec 1st, 2008 2:59 pm
Re: Oracle Urgent - how to get only the upper case data
 
Just use upper as suggested in the previous post.


All times are GMT -4. The time now is 10:57 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC