I need to query the number of distinct items in a particular SQLite table and column. However, there are millions of rows, and I only care if there are more than 20 distinct items. Is there any way to put an early exit in the distinct/group by counter?
Share
LIMIT must work
based on this, http://www.sqlite.org/lang_select.html