Oracle query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalinikumarhitendra
    New Member
    • Aug 2007
    • 1

    Oracle query

    Hi All,

    I am using the following query on sqlplus editor

    sql>select 1/2 from dual;

    it is giving result as .5.

    But I want the result as 0.5.

    Please provide the solution for the same. it is something urgent.

    Thanks
    Shalini
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    may i know pease what you want to achieve from

    [CODE=oracle]select 1/2 from dual;[/CODE]

    Comment

    • babind
      New Member
      • Aug 2007
      • 3

      #3
      hi shalini this is bab from hyderabad i saw ur query but ur qeuery result will be the same as 0.5 but 0 are nothing value so 0 invisible mode are in our result
      but if u want such type of result i will once again and result should send to u surely

      thanking u
      anjan









      Originally posted by shalinikumarhit endra
      Hi All,


      I am using the following query on sqlplus editor

      sql>select 1/2 from dual;

      it is giving result as .5.

      But I want the result as 0.5.

      Please provide the solution for the same. it is something urgent.

      Thanks
      Shalini

      Comment

      • amitpatel66
        Recognized Expert Top Contributor
        • Mar 2007
        • 2358

        #4
        Run the query in TOAD, it would show 0.5

        Comment

        • nramrits
          New Member
          • Sep 2007
          • 18

          #5
          If U Have Important In Zero
          Try This
          Select 0||1/2 From Dual

          Comment

          Working...