• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql

syntax and example of floor function in oracle plsql

FLOOR Function in Oracle SQL – PLSQL

November 5, 2012 by techhoneyadmin

The FLOOR function in Oracle SQL / PLSQL is used to get a largest integer number which is less than or equal to the number passed to the function.

Syntax for the FLOOR function in Oracle SQL / PLSQL is:

SELECT FLOOR(N)
FROM table_name;

  • N is the number passed

Example 1:

SELECT FLOOR(1.23456)
FROM DUAL;

Will return “1”


Example 2:

SELECT FLOOR(2.2)
FROM DUAL;

Will return “2”


Example 3:

SELECT FLOOR(2.051)
FROM DUAL;

Will return “2”


Example 4:

SELECT FLOOR(-2.051)
FROM DUAL;

Will return “-3”


Filed Under: function Tagged With: floor function in oracle plsql, floor function in oracle sql, FLOORPLSQL, how to use floor function in oracle database query, how to use floor function in oracle plsql, how to use floor function in oracle sql, syntax and example of floor function in oracle database query, syntax and example of floor function in oracle plsql, syntax and example of floor function in oracle sql, using floor function in oracle database query, using floor function in oracle plsql, using floor function in oracle sql

Copyright © 2025 · Parallax Pro on Genesis Framework · WordPress · Log in