Thank you for quickly reply.
Could you please answer from questions in the attached file?
If you need more time please the answer status “Fail” is red box and “? (explain & show sql) , Why keep 'THB' ?” is yellow box. Please attached sql can execute of the result this same form document of your.