Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2004
    Posts
    51

    Unanswered: ranking to 2 decimal

    I have query that calculate percentage. i need to rank it to nearest 2 decimal places

    query like

    SELECT distinct [table a]/[table b] *100 as percentage
    from blabla


    results
    .........
    2.7777
    20.125


    ..
    want to get result
    3
    20

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Round?

    -PatP

  3. #3
    Join Date
    Jan 2004
    Posts
    51
    yes oo
    round
    percentage column does not exist from that sample query how can i get round function to work?

  4. #4
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Huh?
    Code:
    SELECT DISTINCT Round([table a]/[table b] *100, 0) as percentage
       FROM blabla
    -PatP

  5. #5
    Join Date
    Jan 2004
    Posts
    51
    got it
    thanks

Posting Permissions

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