On 8/29/2014 9:38 PM, Patrick Dung
wrote:
select student_name as student,extract(year from record_timestamp) as year, count(*) as count_lates from attendance where late group by 1,2; now, if your partitioning is by school year, that will be somewhat trickier. what are your partitioning _expression_ ? as far as faster, well, your query has to read from all of the tables. there won't be any speedup from partition pruning... -- john r pierce 37N 122W somewhere on the middle of the left coast |