Databases: select only one element from an priority ordered group with limits? (2 Solutions!!)