troubleshooting Question

understanding of code

Avatar of thota198
thota198 asked on
Oracle Database
1 Comment1 Solution314 ViewsLast Modified:
Can someone explain the meaning of this code in detail

 v_email_cd := TRIM (SUBSTR (i_email_cd, 1, INSTR (i_email_cd, i_locale) - 2));

SELECT b.resource_id, c.resource_id
                 INTO v_email_cd_res_id, v_email_subject_res_id
                 FROM (SELECT resource_id
                         FROM rbm_key
                        WHERE resource_code = (SELECT TRIM ('MESSAGE.BODY.' || SUBSTR (i_email_cd, 1, INSTR (i_email_cd, i_locale) - 2))
                                                 FROM DUAL)) b,
                      (SELECT resource_id
                         FROM rbm_key
                        WHERE resource_code = (SELECT TRIM ('MESSAGE.SUBJECT.' || SUBSTR (i_email_cd, 1, INSTR (i_email_cd, i_locale) - 2))
                                                 FROM DUAL)) c;
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros