Thank you for your reply,

Your explanation of the SQL meaning was very interesting, it help me to understand why some functions find on internet do not work as well as expected, I didn't pay attention to what database each function was attached.

I will try to improve myself in T-SQL (No big deal by the way).

Thank you again, have a nice day !