My question is slightly similar to this one:
I have a query that works fine:
select bank__r.id, min(processedDate__c)min from cashflow__c group by bank__r.id
and I want to add another field
select bank__r.name, bank__r.id, min(processedDate__c)min from cashflow__c group by bank__r.id
Idea there is to include the bank name associated with the most recent cash flow. I know I could accomplish this with two queries, first one like the above and a second one like "select name from bank__c where id=:someId" but it seems like I should be able to get that other field included more easily.