SóProvas


ID
879532
Banca
FEPESE
Órgão
FATMA
Ano
2012
Provas
Disciplina
Banco de Dados
Assuntos

Assinale a alternativa que defne corretamente o retorno da função SIGN(number) do banco de dados Oracle 10g:

Alternativas
Comentários
  • SIGN returns the sign of n. This function takes as an argument any numeric datatype, or any nonnumeric datatype that can be implicitly converted to NUMBER, and returns NUMBER.

    For value of NUMBER type, the sign is:

    -1 if n<0

    0 if n=0

    1 if n>0

    For binary floating-point numbers (BINARY_FLOAT and BINARY_DOUBLE), this function returns the sign bit of the number. The sign bit is:

    -1 if n<0

    +1 if n>=0 or n=NaN

     

    https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions145.htm

     

    Gabarito: c)