I tried this but couldn't find out what would be the WHEN condition for
Select Cast('asdf' as numeric)ERROR: invalid input syntax for type numeric
regards,Balázs