Sequence according to value from table in postgresql
112312
Create unique sequence per set of rows sharing the same foreign key value
92992
MySQL: Conditionally selecting next and previous rows
46280
PostgreSQL "DESCRIBE TABLE"
24775
MySQL Group_Concat Repeating Values
9372
PostgreSQL create line from points
39394
Natural Sort in MySQL
155080
SQL dynamic ORDER BY using alias
99544
postgres: index to SELECT strings like '%foo%';
4073
Fixing holes/gaps in numbers generated by Postgres sequence
43244
How can I ORDER BY according to some boolean logic?
87530
MySQL SELECT and ORDER BY
58160
find first sequence item that matches a criterion
153324
list results in mysql from the same table
60555
How to count occurrences of a column value efficiently in SQL?
74431
Split values from field and count them according to another field
122755
How to reverse order output of MySQL query
111323
Mysql recursion?