GROUP BY in search results?

Use this forum for HELP at Choral Public Domain Library as well as FEEDBACK
Locked
Cdalitz
Posts: 180
Joined: 24 Apr 2007 14:42

GROUP BY in search results?

Post by Cdalitz »

Is it possible to do something similar to the "GROUP BY" in SQL (or "table()" in R) when searching CPDL?

In particular, I am trying to list and count the languages used for specific texts, e.g.

Code: Select all

SELECT language, COUNT(*) FROM all_pieces WHERE "LinkText" = 'Magnificat' GROUP BY language ORDER BY COUNT(*) DESC
Locked