Find practical knowledge without the noise.

Search guides, SQL, error codes, and procedures — or browse by topic below.

388 guides · 8 topics

Popular this week

See all

Analytical Functions

Guides filed under this topic.

Showing 5 technical documents Folder: Analytical Functions
Filtering…
Analytical Functions

Analytical Functions

Introduction to Analytical FunctionsThese functions compute values across rows while retaining detail records. They're u...

Sai Sree Ram Gundepudi Updated Sep 09, 2026 2 views
RANK, DENSE_RANK, ROW_NUMBER

RANK, DENSE_RANK, ROW_NUMBER

Ranking FunctionsThese assign ranks or row numbers within partitions.ROW_NUMBERSELECT first_name, salary, ROW_NU...

Sai Sree Ram Gundepudi Updated Sep 13, 2026 2 views
LAG, LEAD

LAG, LEAD

LAG and LEADUse LAG and LEAD to get values from previous/next rows.SELECT employee_id, hire_date, LAG(hire_date)...

Sai Sree Ram Gundepudi Updated Sep 07, 2026 3 views
FIRST_VALUE, LAST_VALUE

FIRST_VALUE, LAST_VALUE

FIRST_VALUE and LAST_VALUERetrieve the first or last value in a sorted partition.SELECT department_id, last_name, salary...

Sai Sree Ram Gundepudi Updated Sep 09, 2026 2 views
NTILE, PERCENT_RANK, CUME_DIST

NTILE, PERCENT_RANK, CUME_DIST

NTILE, PERCENT_RANK, CUME_DISTNTILE(n): Divides rows into n buckets.PERCENT_RANK(): Shows relative rank (0 to 1).CUME_DI...

Sai Sree Ram Gundepudi Updated Sep 12, 2026 2 views