I'm trying to change the cases so the first letter is upper case and the rest are lower case, but this is closest I could get:
Code:
SELECT concat(UPPER(DISTINCT left(name, 1)), LOWER(DISTINCT Right(name, length(name)-1))) FROM saleM
It gives me an error and I have no idea what the problem is and I've searched around the internet and found nothing. It works until I add a concat() or UPPER()/LOWER()
Code:
SELECT DISTINCT left(name, 1) FROM saleM
SELECT DISTINCT Right(name, length(name)-1) FROM saleM
They both work.
I know this web site is patially made with SQL and there are quite a few programmers here, so I thought maybe I could get help here.