79436586

Date: 2025-02-13 14:59:06
Score: 2
Natty:
Report link

Thanks to all the comments, you got me moving in the right directions. I finally wound up with this code : round(cast(cast(cast(substring(cast(cast(inv.latitude as int) as varchar),1,2) as int) as numeric) + cast(cast(substring(cast(cast(inv.latitude as int) as varchar),3,2) as int) as numeric)/60 + cast(cast(substring(cast(cast(inv.latitude as int) as varchar),5,4) as int) as numeric)/100/3600 as varchar),5) as "Latitude"

Yes, its bad. But its verified working and unless I can get the DBA to change how he captures/stores data... it is what it is...

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tim Barrera