Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Or, if all the columns are of the same/similar data type, then may be this?
SELECT [HOME OFFICE] FROM YourTable UNION ALLSELECT [LETTING AGENTS] FROM YourTable UNION ALL SELECT [RESIDENTIAL AREAS] FROM YourTable;
gagani
Posting Yak Master
112 Posts
Posted - 2012-05-11 : 11:54:15
I have a table with capital letters for each column value. Without changing that table, I need a query to get the output in such way thatif there is one word in the column, then the starting letter should becapital and the rest should be in small letters.if there are two words, then starting letter of each word should be caps