How to avoid full tablescan with group function?

Printable View