How to Convert Dec to Any Base in SQL