I got a question asking- Write a Query to print the word 'beautiful vintage', but capitalising the first letter in each word, in mysql.
I googled and got suggestion from stack overflow using sub string combination with upper
So I tried :
Select CONCAT(UPPER(SUBSTRING('beautiful vintage',1,1)),LOWER(SUBSTRING('beautiful vintage',2))) as dd;
o/p ---> Beautiful vintage (where v is not getting converted)
Yet I could only capitalize the first word and couldn't the second word.
Please help me out with this one,thanks.