1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] what is the divisor is equal to zero in plsql?

Discussão em 'Outras Linguagens' iniciado por Stack, Novembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    SELECT pstartdate,
    opbal,
    joined,
    resign,
    ( opbal + joined - resign ) clbal
    ,
    ( Round(( ( resign * 100 ) / ( opbal + joined ) ) / 100, 2) * 100
    ) attriation
    FROM (SELECT pstartdate,
    penddate,
    Getopempbal(pstartdate) OpBal,
    Getempjn(pstartdate, penddate) Joined,
    Getempres(pstartdate, penddate) Resign
    FROM (SELECT Add_months:)startdate, LEVEL - 1) pstartdate,
    Add_months:)startdate, LEVEL) - 1 penddate
    FROM dual
    CONNECT BY LEVEL <= Months_between( :enddate, :startdate ) + 1))
    ORDER BY To_number(1)


    When i executed this query Error came


    divisor is equal to zero.

    i think error this place

    (round(((resign*100)/(opbal+joined))/100,2)*100) attriation

    Continue reading...

Compartilhe esta Página