TSQL: select the latest N rows, if not specified select all
43741
Dynamic SELECT TOP @var In SQL Server
144830
How to select the most recent set of dated records from a mysql table
91217
Arbitrarily ordering records in a table
127084
Returning the 'last' row of each 'group by' in MySQL
7064
Retrieving the last record in each group - MySQL
127977
SQL Server Select top 10-20 results?
129059
Select only those rows based on specific condition of user id
110786
T-SQL: Selecting rows to delete via joins
148344
Can you prevent more than X number of rows being updated in SQL Server?
57984
Select last N# of columns of a table from MySQL
2374
How can I SELECT rows with MAX(Column value), PARTITION by another column in MYSQL?
31811
Select row from a table by column value
143982
How to extract the last inserted row in SQL Server?
92992
MySQL: Conditionally selecting next and previous rows
52343
How to include the total number of returned rows in the resultset from SELECT T-SQL command?
116962
How to select last N records from a table in mysql
2789
Fetch the row which has the Max value for a column