Skip to content
Oracle Home

Oracle Home

For Everything Oracle and more

Menu

  • Home
  • Articles
  • About Me
  • Computer Book Reviews
  • New Computer Books

Oracle Built-in SQL Functions

You are here: Oracle Home > Oracle Built-in SQL Functions > Page 6

Dense_rank – Oracle SQL Function

DENSE_RANK returns a NUMBER representing the rank of a row within a group of rows. Syntax: DENSE_RANK(expression1,…) WITHIN GROUP (ORDER BY) Example: SELECT DENSE_RANK(5000,103) WITHIN GROUP (ORDER BY SALARY, MGR_ID) as RESULT FROM EMP; RESULT ———— 43

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Group_id – Oracle SQL Function

GROUP_ID assigns a number to each group defined in a GROUP BY clause, GROUP_ID can be used to easily see duplicated groups in query results. Example: select avg(salary), mgr_id, group_id() gid from EMP group by mgr_id; AVG(SALARY) MGR_ID GID ———————-

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Decode – Oracle SQL Function

The decode function has the functionality of an IF-THEN-ELSE statement. The syntax for the decode function is: decode ( expression , search , result [, search , result]… [, default] ) expression is the value to compare. search is the

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Max – Oracle SQL Function

MAX returns the maximum value of the expression argument. Syntax: MAX(expression) Example: SELECT max(salary) as max_salary from JOBS; max_salary ——————- 40000

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Instr – Oracle SQL Function

The instr function returns the location of a substring in a string. The syntax for the instr function is: instr ( string1 , string2 , [ start_position ], [ nth_appearance ]) string1 is the string to search. string2 is the

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Median – Oracle SQL Function

MEDIAN returns the median value of the expression argument. Syntax: MEDIAN(expression) Example: SELECT MEDIAN(max_salary) as med FROM JOBS; MED —————- 10000

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Floor – Oracle SQL Function

The floor functions allows you to round down any number to the nearest integer. For example: floor(6.02) would return 6 floor(7.789) would return 7 See Ceil to round numbers up to the nearest integer. See Round to round a number

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Rank – Oracle SQL Function

RANK determines the rank of one or more of the expression exp within a result set. Syntax: RANK(expression…) WITHIN GROUP (ORDER BY expression) Example: SELECT RANK(10000) WITHIN GROUP (ORDER BY salary DESC) as RESULT FROM EMP; RESULT ——————- 16

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Ceil – Oracle SQL Function

The ceil functions allows you to round up any number to the next integer. For example: ceil(6.02) would return 7 ceil(7.59) would return 8 See Round to round numbers to a particular decimal place See Floor to round a number

orahome 20/09/2018 Oracle Built-in SQL Functions Read more

Stddev – Oracle SQL Function

STDDEV returns the sample standard deviation of the expression. STDDEV will return zero when it has only one row of input data. Syntax: STDDEV(expression) Example: SELECT STDDEV(COMMISSION_PCT) FROM EMP; STDDEV(COMMISSION_PCT) ——————————————– .0857432345

orahome 20/09/2018 Oracle Built-in SQL Functions Read more
  • « Previous
  • Next »

Recent Posts

  • SQL Server OUTPUT Command
  • Direct Joins for UPDATE and DELETE in Oracle 23ai Database
  • GROUP BY Column Alias or Position in Oracle 23ai
  • SELECT without FROM DUAL in Oracle 23ai Database
  • IF EXISTS and IF NOT EXISTS in SQL in Oracle 23ai Database

Categories

  • Access Functions
  • Affiliate Marketing
  • Articles
  • Book Reviews
    • MySQL Book Reviews
    • Oracle Book Reviews
    • Other Book Reviews
    • PHP Book Reviews
    • Web Marketing Book Reviews
  • Computer Book Releases
  • Computer Magazines
  • Computer Products
  • CSS Tips
  • Excel Functions
  • Javascript Code
  • Microsoft Access
  • MySQL Code
  • Oracle 23ai
  • Oracle Built-in SQL Functions
  • Oracle DBA
  • Oracle Error Codes
    • EXP Error Codes
    • IMP Error Codes
    • ORA Error Codes
    • PLS Error Codes
  • Oracle Forms
  • Oracle Functions
  • Oracle Procedures
  • Oracle SQL
  • PHP Code
  • SEO Tips
  • SQL Server
  • Unix Code
  • Video Editing
  • Web Hosting

Archives

  • March 2025
  • July 2024
  • March 2024
  • July 2021
  • March 2021
  • November 2020
  • August 2020
  • June 2020
  • May 2020
  • March 2020
  • March 2019
  • September 2018

Tag Cloud

059652708X 0596100892 0596101058 0596528000 book review case insensitive search oracle case insensitive search sql center data column sql centre data column sql compare strings oracle compare strings sql convert floating point numbers create varrays sql deleted oracle datafile difference between two dates drop all empty tables drop column from table oracle drop column in table drop column table sql employee service time sql limit objects created by user mysql stored procedure programming network windows xp to windows vista number types sql ora-01722 oracle 11g new features oracle 23ai oracle datafile oracle pl/sql programming oracle rename column table remove leading zeros remove zeros from string sql rename table column sql select last saturday in every month select random number set oracle select random numbers sql sql difference between dates sql time between dates start windows oracle website accessibility website screen readers windows oracle service windows vista windows vista the definitive guide windows xp

Amazon Offers

Categories

  • Oracle SQL
  • Unix Code
  • MySQL Code
  • Oracle Functions
  • PHP Code
  • Oracle DBA
  • Oracle Procedures
  • Oracle Forms
  • Oracle 23ai
  • ORA Error Codes
  • Computer Magazines

Pages

  • ASCII Table Lookup
  • Computer Book Reviews
  • New Computer Books
  • Oracle Database 10g
  • Oracle Employers
  • Oracle Forms
  • Oracle Jobsites
  • Oracle Reports
  • Oracle White Papers
  • Top 10 Javascript Books
  • Top 10 MySQL Computer Books
  • Top 10 Oracle Computer Books
  • Top 10 PHP Computer Books
  • Top 10 Raspberry Pi Books
  • Top 10 SEO and Internet Marketing Books
  • Unix Commands Cheat Sheet
Copyright © 2025 Oracle Home. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Sitemap
  • Contact us
  • Privacy Policy