I am trying to automate API load and facing field restriction. Basically I need to shorten string if its more than 24 characters.
I am considering logic to take the first 4 characters of the word and replace space with _. A number of words in the field are dynamic.
e.g. Corporate Responsibility = copr_resp
E.g. Social Distancing Criteria = soci_dist_crit
Table_a
ColA Corporate Responsibility Social Distancing Criteria
Expected Result:
Select ColA, as Output from table_a;
Output ColA Output Corporate Responsibility copr_resp Social Distancing Criteria soci_dist_crit
I prefer to do this using SQL. Any suggestion?