I have the following usernames in Postgresql user table.
**username**
test
123test
123test456
test123
test45test
test55test55
So I am trying to get the string without end numeric value and end numeric value seperately.
I am expecting following output
str num
----------------
test 0
123test 0
123test 456
test 123
test45test 0
test55test 55
How to write a Postgresql query that will return the above result?