Top "Analytic-functions" questions

Aggregation functions that can peek at rows returned from the same query.

Getting values relating to the max and min rows in Oracle

In Oracle 11g we need to be able to query a table to pull out information from rows with the …

sql oracle oracle11g analytic-functions
replace NULL values with latest non-NULL value in resultset series (SQL Server 2008 R2)

for SQL Server 2008 R2 I have a resultset that looks like this (note [price] is numeric, NULL below represents a …

sql-server aggregate-functions sql-server-2008-r2 analytic-functions
Oracle SQL Analytic query - recursive spreadsheet-like running total

I have the following data, composed of the A value, ordered by MM (month). The B column is computed as …

sql oracle recursive-query analytic-functions cumulative-sum
Oracle MIN as analytic function - odd behavior with ORDER BY?

This particular case was distilled from an example where the programmer assumed that for two shipments into a tank car, …

sql sql-server oracle oracle10g analytic-functions
Oracle analytics: using LAG values in calculation?

I have a table that records when tasks were completed. Tasks belong to a workflow, but in this example I'm …

oracle analytic-functions
Missing window specification for this function

Now getting the following error: ORA-30484: missing window specification for this function 30484. 00000 - "missing window specification for this function" *Cause: …

sql oracle window-functions analytic-functions over-clause
How to produce rank in Oracle

Need to rank the below by salary, with highest salary having rank 1. The RANK column shown is what I'm after: …

sql oracle oracle10g analytic-functions top-n
Evaluate WHERE predicates on analytic functions before other predicates (Oracle analytic functions)

Background Sample data set #Employee Id | Period | Status --------------------- 1 | 1 | L 1 | 2 | G 2 | 3 | L I want a simple select query to yield …

sql oracle where-clause operator-precedence analytic-functions