Thanks for the replies.<div>  Doing the analysis in a database isn't something I considered before; for one thing all our data is in Oracle.<br><div><br></div><div>However, as a more generic comment, my issue with doing it in the DB is that it requires using bespoke SQL - I'm a fan of GUI's for one-off tasks as they're much easier to learn, more intuitive, and faster. It also allows for a more integrated workflow if everything is done in a single application.</div>

<div><br></div><div>But for a repeating task, SQL would be an excellent idea and I'll certainly bear it in mind for the future.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">So I am happy that using 'sum' to produce a count column then adding that up will give you the answer you are looking for.</span></blockquote>

<div>In that case maybe it should be renamed to "count" as it certainly doesn't seem to be "sum"ing. But I can't actually see the output to form an opinion because it always crashes for me.</div>

<div><br></div><div>Kind Regards,</div><div>Jonathan</div><br><br><div class="gmail_quote">On 9 August 2013 08:14, Goyo <span dir="ltr"><<a href="mailto:goyodiaz@gmail.com" target="_blank">goyodiaz@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/8/8 Jonathan Moules <<a href="mailto:jonathanmoules@warwickshire.gov.uk">jonathanmoules@warwickshire.gov.uk</a>>:<br>


<div class="im"><br>
> Also - surely "sum" is different from "count"? That's why I didn't use that<br>
> in the first place.<br>
<br>
</div>I think the count field is automatically added to te resulting table.<br>
<br>
I also agree with Spencer in that most of the time I find using a db<br>
and SQL more convenient for spatial analysis --besides a more<br>
organized way to store my data. Using spatialite with QGIS is really<br>
esay and you can import/export data from/to most common formats.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Goyo<br>
</font></span></blockquote></div><br></div>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>