Page 1 of 1

need every first character are upper in query

Posted: Mon Jul 10, 2006 4:31 am
by mfa786
Hi master
Sir I use amount to word function which give me following result

four thousand five hundred sixty-three Rupees only.

But my user need following result

Four Fhousand Five hundred Sixty-Three Rupees only.

Means every first character are upper not small

Please give me idea

Than

aamir

Posted: Mon Jul 10, 2006 4:44 am
by mirza_rehan
Aamir there are 2 ways for this, if you are using PL/Sql function then user initcap function. For example your function name is <b>SpellNumber</b>

<b>Initcap(SpellNumber(1251));</b>

If you are using this way

<b>select to_Char(To_Date(Sal,'j'),'Jsp') splSal from emp</b>

Then you you set date formate <b>Jsp</b> instead of <b>JSP</b>

Hope it will solve yours problem

take care
Allah Hafiz

Best regards,
R E H A N M I R Z A
System Analyst / Senior Oracle Developer
Cell: +92-304-2120807

When ever you pray
Please remember me and my family

Posted: Tue Jul 25, 2006 4:15 am
by sateesh
I think INITCAP function(which is supplied by ORACLE) is the best way that U can proceed with

Ex:Select Initcap('sateesh') from dual; will giv the Result as follows

Result :Sateesh

Satti