Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in greatest-n-per-group

Getting Max date from multiple table after INNER JOIN

How to include a column in a group by without unwanted values

Retrieve max/min row with left join trick for a group, when group is on another table

Limit Per Criteria

Select entry with second most recent date

MySQL select a single record from highest join value from multiple tables with multiple records

PostgreSQL - Show the last N rows for each sorted group

postgres: get top n occurrences of a value within each group

How to make faster group by in mysql very big table?

How to select only the second max date from a table

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?