June 26, 2007 at 2:22 pm
hi
i have a problem
display the employees last names with the first letter as capital and all other letters or lowercase
in table all lettrs are capital letters,i need only the first letter as capital.
pls sujjest how to solve this query
Thanks and Regards
Sunny
June 26, 2007 at 2:36 pm
Check out the functions UPPER, LOWER, LEFT, RIGHT, and Substring to solve this problem.
June 26, 2007 at 3:31 pm
select upper(left(last_name,1))+lower(substring(last_name,2,len(last_name)-1)) from table_name
June 26, 2007 at 3:34 pm
I didn't answer because it most likely was a homeowrk question... but I guess we will never know know .
June 27, 2007 at 8:50 am
In oracle it works like this
select Initcap(lastname) from table;
and I think michaeal answered it right way.
June 27, 2007 at 8:55 am
It did feel like a homework problem.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply