79125799

Date: 2024-10-25 13:04:19
Score: 2.5
Natty:
Report link

I've found the easiest way is to use the 'CAST' function. Say my select reads: SELECT AMTDUE FROM INVOICES; and that return a left aligned string of values. Changing the statement to SELECT CAST(AMTDUE AS DECIMAL(10,2)) AS AmtDue FROM INVOICES; and run it, now I have a right justified column of numbers.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mwtoine