Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. oracle query

oracle query

Scheduled Pinned Locked Moved Database
databaseoraclehelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mahenputta
    wrote on last edited by
    #1

    hi friends... is there any replacement for the following query select 0/0 from dual; if i execute the query i am getting error ORA-01476. can any body helps me in bye mahen

    J 1 Reply Last reply
    0
    • M mahenputta

      hi friends... is there any replacement for the following query select 0/0 from dual; if i execute the query i am getting error ORA-01476. can any body helps me in bye mahen

      J Offline
      J Offline
      joemonvarghese
      wrote on last edited by
      #2

      hi Its a mathematical error..in a division divisor cannnot be Zero. Regards Joe

      M 1 Reply Last reply
      0
      • J joemonvarghese

        hi Its a mathematical error..in a division divisor cannnot be Zero. Regards Joe

        M Offline
        M Offline
        mahenputta
        wrote on last edited by
        #3

        thanks jo instead of error if it gives some value.. i can assign that to variable and get the value.. i working with one programme..say variable a and b. some time variable b might be zero.. when i run the query.. say select a/b then it gives the error if thats values become 0.. please help.. me thanks mahen

        J 1 Reply Last reply
        0
        • M mahenputta

          thanks jo instead of error if it gives some value.. i can assign that to variable and get the value.. i working with one programme..say variable a and b. some time variable b might be zero.. when i run the query.. say select a/b then it gives the error if thats values become 0.. please help.. me thanks mahen

          J Offline
          J Offline
          joemonvarghese
          wrote on last edited by
          #4

          hi you can use DECODE function with which you can replace 0 with some other value. Regards Joe

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups