Results 1 to 5 of 5

Thread: Please solve this problem

  1. #1
    Geek_Guest
    Guest

    Please solve this problem

    Select round (basic*0.5/100) from pay here problem is that when basic=6500 then it return value=32 but roundoff value should come 33. plz solve this problem (PgAdmin database is used)

    Question asked by visitor KPoonia


  2. #2
    Contributing Member
    Join Date
    Apr 2006
    Answers
    46

    Re: Please solve this problem

    can't understand what u want.

    SQL> Select round (6500*0.5/100) from dual;

    ROUND(6500*0.5/100)
    -------------------
    33

    SQL> Select (6500*0.5/100)from dual;

    (6500*0.5/100)
    --------------
    32.5


  3. #3
    Junior Member
    Join Date
    Dec 2005
    Answers
    1

    Re: Please solve this problem

    you are already used ROUND function also, why it is not working. can't understand what u want.

    Last edited by vishnupanda; 08-07-2007 at 05:13 AM.

  4. #4
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Please solve this problem

    if you are using round() ,how come it returns 32.5 .it should display 33.


  5. #5
    Junior Member
    Join Date
    Feb 2007
    Answers
    26

    Re: Please solve this problem

    may be ur confused with the trunc and round function. coz only with trunc 32 can be the solution but not with round.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact