Skip to content

How to get only Capital letters from given value

I have a table it contains ID, Description and code columns. I need to fill code column using description column. Sample Description is “Investigations and Remedial Measures” so my code should be “IRM”. Note: Is there any words like “and/for/to/in” avoid it Answer This code…

Use replace with interval in sql query

I want to show if 0 it will put a word, perm for example and if not 0 it will get the normal date using interval. Tried to include it in replace. REPLACE(REPLACE(usetime,0,’PERM’), add_time + …