↧
Answer by Willem Renzema for Optimising some SQL to get all rows...
The documentation provides a couple ways to get what you want, which will perform well. SELECT TableA.col1, TableA.col2FROM TableAINNER JOIN ( SELECT MIN(col3) AS col3 FROM TableA WHERE col4 = 0 AND...
View ArticleOptimising some SQL to get all rows corresponding to the minimum value of a...
I've worked out how to get some rows from a table where a column has the lowest possible value. Note this can return multiple rows, which is what I want. It works just fine.SELECT col1, col2FROM...
View Article