Should the data be calculated in DB server or in CGI process? Which way is better? : <p>So I am an green hand, when I am coding, I always think that should the data be calculated (for example , in MYSQL, I need to do calculation in script which including 'group by') in DB server or in the CGI procedure? Which way is more better and more efficient? </p>

<p>Actually this stuff confuse me such a long time..</p>

<p>By the way, recently I use PHP coding in my work.</p>
