I am expecting the following to yield more than 3 rows, since there are ties of min(a.[Sepal.Width]) within each of a.[Species], however only 3 rows are returned:
sqldf(' select a.[Species], min( a.[Petal.Width]) from iris a group by a.[Species] ')
Species min( a.[Petal.Width])
1 setosa 0.1
2 versicolor 1.0
3 virginica 1.4
1: Is this normal behavior of SQLite?
2: How do I design a select string to also return the ties? (preferably as close to the original search string as possible)
Edit: I see now that my confusion stemmed from being used to using SAS proc sql, which would return all matching rows. I have now learned that this is indeed peculiar to SAS proc SQL and not to be expected from other SQL incarnations. People with the same SAS-induced confusion as me will benefit from this answer which articulate this SAS behavior: https://stackoverflow.com/a/25539916/1831980