I'm trying to create a query that will display our database field with Upper and Lower case (currently the data is saved as all Upper case).
So for vchBusinessName = ARROW PLUMBING AND SERVICES, INC.
I want it to display = Arrow Plumbing And Services, Inc.
I've created this query:
SELECT (UPPER(substring(vchBusinessName, 1, 1)) + LOWER(substring (vchBusinessName, 2, 99)))
FROM tblDebtor
WHERE intCaseID = 442847 AND intDebtorType = 94
The output = Arrow plumbing and services, inc.
How do I account for when there's a space make that letter Upper Case and the rest Lower Case?? Please help, thanks in advance.
So for vchBusinessName = ARROW PLUMBING AND SERVICES, INC.
I want it to display = Arrow Plumbing And Services, Inc.
I've created this query:
SELECT (UPPER(substring(vchBusinessName, 1, 1)) + LOWER(substring (vchBusinessName, 2, 99)))
FROM tblDebtor
WHERE intCaseID = 442847 AND intDebtorType = 94
The output = Arrow plumbing and services, inc.
How do I account for when there's a space make that letter Upper Case and the rest Lower Case?? Please help, thanks in advance.