Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SQL Count

0 views
Skip to first unread message

Bkly...@gmail.com

unread,
Apr 12, 2008, 6:48:51 PM4/12/08
to
All,

I have a map layer with a row for each case of a disease. Using a
spatial join in I got the census tract for each point and now I want a
layer with the frequency by census tract.

I would like to do something like:

select CensusTract, count(*) as CensusCount
into NewLayer
from MyTable
group by censusTract

Is such a thing possible within ArcMap?

thanks ahead of time
deborah

Jean H

unread,
Apr 14, 2008, 11:05:21 AM4/14/08
to

Have a look at Hawth's tools (freeware for ArcGIS).
http://www.spatialecology.com/htools/enumfeatures.php

Jean

Paul Cooper

unread,
Apr 14, 2008, 12:49:14 PM4/14/08
to

Won't the "SUmmary Statistics" tool do this? The "Frequency" command
in Workstation Arc/INFO will do it.

bob.he...@gmail.com

unread,
Apr 15, 2008, 10:22:42 AM4/15/08
to
On Apr 14, 11:49 am, Paul Cooper <paul.coo...@invalid.bas.ac.uk>
wrote:
> On Sat, 12 Apr 2008 15:48:51 -0700 (PDT), "BklynT...@gmail.com"

>
>
>
>
>
> <BklynT...@gmail.com> wrote:
> >All,
>
> >I have a map layer with a row for each case of a disease.  Using a
> >spatial join in I got the census tract for each point and now I want a
> >layer with the frequency by census tract.
>
> >I would like to do something like:
>
> >select CensusTract, count(*) as CensusCount
> >into NewLayer
> >from MyTable
> >group by censusTract
>
> >Is such a thing possible within ArcMap?
>
> >thanks ahead of time
> >deborah
>
> Won't the "SUmmary Statistics" tool do this? The "Frequency" command
> in Workstation Arc/INFO will do it.- Hide quoted text -
>
> - Show quoted text -

The 'Frequency' command is also under the GUI in ArcGIS using
ArcToolbox. ArcMap -> ArcToolbox -> Analysis Tools -> Statistics ->
Frequency.

I'm not sure why ArcGIS doesn't support full SQL instead of just the
where clause, joins/relates, and separate commands like the one
above. It seems to me that ArcGIS is missing out on the real power of
a RDMS, which is full SQL support.
.

Paul Cooper

unread,
Apr 16, 2008, 11:18:22 AM4/16/08
to
On Tue, 15 Apr 2008 07:22:42 -0700 (PDT), bob.he...@gmail.com
wrote:


Mainly because of its heritage in a non-SQL database, I think. You can
use native database enquiries in Arc Workstation.

Paul

0 new messages