Results 1 to 2 of 2

Thread: Decimal Point in SQL ??

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Hello,

    Is there a way to limit the number of decimal point while at the same time sum up the total in SQL??

    Code E.g.

    Select Dept, Sum(Totalbill, 2) AS Subtotal From Ar GROUP BY Dept order by Dept asc

    Or must i use Round(Totalbill, 2) first before sum up.

    Note that all this code only execute for viewing purposes using MshFlexGrid

    Thks a lot.

  2. #2
    Guest

    Post

    Try this

    SELECT format(sum(TotalBil),'##0.00') as Subtotal

    -------
    Vincent van den Braken



    [This message has been edited by Azzmodan (edited 09-09-1999).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width