Just for example:
I'm trying to make a select where a leading zero will be added if the number is less than 10.
Examples:
SELECT COUNT(1);
Returns = > 1
SELECT LPAD(1, 2, 0);
Returns = > 01
SELECT LPAD(COUNT(1), 2, 0);
Returns = > BLOB
How do I use the LPAD function with COUNT , or one that does something similar?