and more in a single search tool across platforms. Read the announcement here. |
07/20/2023 07:54 AM
07/20/2023 08:36 AM - edited 07/20/2023 08:37 AM
Hi @SIRAJMOLLA ,
Can you try using the Right Function in Mysql to achieve your use case.
SELECT RIGHT("00001", 5) AS ExtractString; -->00001
SELECT RIGHT("000010", 5) AS ExtractString; -->00010
SELECT RIGHT("0000100", 5) AS ExtractString; -->00100
MySQL RIGHT() Function (w3schools.com)
MySQL Tryit Editor v1.0 (w3schools.com)
Thanks,
Armaan
07/20/2023 06:28 PM
Share current rule.
07/24/2023 12:27 AM
Hi Rushikesh,
Below is the logic -
IF((LENGTH(replace(users.lastname,"'","")) >= 4), UPPER(CONCAT(SUBSTRING(replace(users.firstname,"'",""), 1, 1),SUBSTRING(replace(users.lastname,"'",""), 1, 4),FN_EIC_SEQGEN('sam'))), UPPER(CONCAT(SUBSTRING(replace(users.firstname,"'",""), 1, 1),SUBSTRING(replace(users.lastname,"'",""), 1, 3), 0,FN_EIC_SEQGEN('sam'))))
With Regards,
Siraj Molla