Search code examples
How to select only the first rows for each unique value of a column?...


sqlsql-servert-sqlselectgreatest-n-per-group

Read More
SQL query to limit results based on Priority value...


sqloraclegreatest-n-per-grouporacle19c

Read More
Find top 1 record from join table for unique id by timestamp...


sqlsql-serverjoinsql-server-2012greatest-n-per-group

Read More
Get two or more rows from Firebird DB using max...


sqlselectgreatest-n-per-groupfirebird

Read More
oracle, how to use outer table column in joined subquery...


sqloraclegreatest-n-per-group

Read More
Gather the last entry for a specific metric from multiple fields...


sqlpostgresqlgreatest-n-per-group

Read More
Retrieving the last record in each group - MySQL...


mysqlsqlgroup-bygreatest-n-per-groupgroupwise-maximum

Read More
PostgreSQL fast query to get most recent rows...


postgresqlgreatest-n-per-group

Read More
How to join a table with a row in another table having the highest id?...


sqlpostgresqlgreatest-n-per-group

Read More
How to optimize this sql query on + 2 million rows...


phpmysqlquery-optimizationgreatest-n-per-group

Read More
Please explain the execution of this simple SQL query...


mysqlsubquerygreatest-n-per-group

Read More
SQL Select the most recent record for each ID...


mysqlsqlgreatest-n-per-group

Read More
How to Calculate the Average Variation of a Value Based on Grouping by Multiple Columns, Using the D...


sqldb2greatest-n-per-group

Read More
What SQL query can I use to get the first record of each group based on a certain column?...


sqlmysqlgreatest-n-per-group

Read More
CTE built from UNION running very slow...


mysqlquery-optimizationgreatest-n-per-groupmysql-8.0union-all

Read More
make max() function faster when used as inline query join condition...


sqloraclejoinmaxgreatest-n-per-group

Read More
Get the first and last shippment and arrive date for all users...


sqlsql-servergreatest-n-per-groupwindow-functions

Read More
Pull back values from field B where the data in field A is the max...


sqloraclegreatest-n-per-group

Read More
mysql - using Max on two fields...


mysqlgreatest-n-per-group

Read More
Select TOP 2 highest sum based on two columns...


sqloraclegreatest-n-per-group

Read More
SELECT last Row for each Customer based on DateTime...


sqlt-sqldatabricksgreatest-n-per-grouprow-number

Read More
How to use row_number() over partition by to keep rows where value is not null if it occurs first...


sqlsnowflake-cloud-data-platformgreatest-n-per-groupwindow-functions

Read More
Find multiple duplicate rows in SQL Server table by name and date...


sqlsql-servert-sqlgreatest-n-per-groupsql-server-2019

Read More
Getting only the highest counts per type in Postgres...


sqlpostgresqlaggregate-functionsgreatest-n-per-group

Read More
Select rows with Max(Column Value) for each unique combination of two other columns...


mysqlsqlmaxgreatest-n-per-group

Read More
How do I can pull the latest row having the latest row.date, and keeping all other values?...


sqlmysqlgreatest-n-per-group

Read More
Get a column that is not specified in group-by clause...


sqlpostgresqlgroup-bygreatest-n-per-group

Read More
How to include columns from two tables based on a common column value but include rows only from the...


sqlpostgresqlleft-joingreatest-n-per-grouppostgresql-14

Read More
Trying to return data into columns from 1st, 2nd, 3rd, 4th (etc.) previous dates...


sqlmysqljoingreatest-n-per-group

Read More
Get the value associated with maximum per group...


sqlmysqlstringgreatest-n-per-group

Read More
BackNext