The DB2 TRIM function removes bytes from the beginning, from the end, or from both the beginning and end of…