Search code examples
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...

sqloracle-databasejoinmaxgreatest-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...

sqloracle-databasegreatest-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...

sqloracle-databasegreatest-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
SQL: How find newest row for each value of some column...

sqlpostgresqlgreatest-n-per-group

Read More
group-wise min or max...

rgreatest-n-per-group

Read More
MySQL get records of last date of each month...

phpmysqlsubquerygreatest-n-per-groupwindow-functions

Read More
Select all conversations with last sent message...

sqlpostgresqlgreatest-n-per-group

Read More
Return line of data with most recent date...

sqloracle-databaseaggregate-functionsgreatest-n-per-group

Read More
MariaDB Query is way too slow...

sqldatabasemariadbquery-optimizationgreatest-n-per-group

Read More
Laravel Eloquent select all rows with max created_at...

phpmysqllaravelgreatest-n-per-group

Read More
Using GROUP BY to get the entry with the highest value...

sqlmysqlgroup-bygreatest-n-per-group

Read More
DAX TOPN Ascending Returns Blank Values...

exceldaxgreatest-n-per-grouppowerpivotcube

Read More
Empty result of a query with 'group by' and 'having' clause...

sqlmysqlmariadbgreatest-n-per-group

Read More
postgres eliminating NULLS in partition by group...

sqlpostgresqlgreatest-n-per-groupwindow-functions

Read More
How do I select the record with the minimum value for one column and where another column has a give...

sqlmariadbaggregate-functionsgreatest-n-per-group

Read More
get max value depending on condition...

sqlgreatest-n-per-groupamazon-athena

Read More
BackNext