KnowledgeBoat Logo

Informatics Practices

What will be returned by the given query ?

SELECT Sign(26);
  1. 1
  2. -1
  3. 0
  4. none of these

SQL Queries

3 Likes

Answer

1

Reason — The SIGN() function is used to determine the sign of a given number. It returns 1 if the number is positive, -1 if the number is negative, and 0 if the number is zero. In this query, SIGN(26) represents a positive number. Therefore, it will return 1 as the output.

Answered By

1 Like


Related Questions