Oracle SIGN Function


/ Published in: SQL
Save to your folder(s)

A few examples of the SIGN function


Copy this code and paste it in your HTML
  1. /*
  2. SIGN Examples
  3. */
  4.  
  5. --Example 1
  6. SELECT SIGN(45) AS SIGN_VALUE
  7. FROM dual;
  8.  
  9. --Example 2
  10. SELECT SIGN(-3) AS SIGN_VALUE
  11. FROM dual;
  12.  
  13.  
  14. --Example 3
  15. SELECT SIGN(0) AS SIGN_VALUE
  16. FROM dual;
  17.  
  18.  
  19. --Example 4
  20. SELECT SIGN(0.198) AS SIGN_VALUE
  21. FROM dual;
  22.  
  23.  
  24. --Example 5
  25. SELECT SIGN(493781.395) AS SIGN_VALUE
  26. FROM dual;

URL: http://www.databasestar.com/oracle-sign/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.