Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in greatest-n-per-group

SQL Query to select each row with max value per group

sql greatest-n-per-group

Ranking users with weekly date period and listing all first ranked users

Efficient way to combine SELECT DISTINCT, ORDER BY, and a small LIMIT

SQL Server: Select entry based on frequency of entries in another table

How to get the last records for a combination of 2 columns?

BigQuery: Select value by last date per user

How do I build a query in Ruby on Rails that joins on the max of a has_many relation only and includes a select filter on that relation?

"Top-1 Per Group”: Get the latest row per deviceid in a time range

Get whole row with MIN-Value and GROUPed BY another column

How can I SELECT distinct data based on a date field?

Select a record with most recent date and time in Oracle [duplicate]

MySQL LEFT JOIN only 1 row depending on MAX() value

Count events with a cool-down period after each instance

GROUP BY PostgreSQL query where I need a column that is not in the GROUP BY clause [duplicate]

PostgreSQL GROUP BY: SELECT column on MAX of another WHERE a third column = x

SQL Join to the latest record

Postgres get first item of a group by

SQL select the max value of a sum

How to select specific rows in PostgreSQL query?