<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tessercat.net/index.php?action=history&amp;feed=atom&amp;title=Useful_Parcel_Queries</id>
	<title>Useful Parcel Queries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tessercat.net/index.php?action=history&amp;feed=atom&amp;title=Useful_Parcel_Queries"/>
	<link rel="alternate" type="text/html" href="https://wiki.tessercat.net/index.php?title=Useful_Parcel_Queries&amp;action=history"/>
	<updated>2026-04-08T04:15:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>https://wiki.tessercat.net/index.php?title=Useful_Parcel_Queries&amp;diff=14233&amp;oldid=prev</id>
		<title>Steve: added wonky property filter as an example</title>
		<link rel="alternate" type="text/html" href="https://wiki.tessercat.net/index.php?title=Useful_Parcel_Queries&amp;diff=14233&amp;oldid=prev"/>
		<updated>2021-11-23T18:15:24Z</updated>

		<summary type="html">&lt;p&gt;added wonky property filter as an example&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Filter by likely owner-occupied and join to parcel boundary table for geographies.===&lt;br /&gt;
This example is from our Carto account, but the source tables are pulled from open data.&lt;br /&gt;
&lt;br /&gt;
The table &amp;lt;code&amp;gt;residential_parcels&amp;lt;/code&amp;gt; is a filtered version of the [https://data.wprdc.org/dataset/allegheny-county-parcel-boundaries1 Allegheny County Property Assessment Data]  ( &amp;lt;code&amp;gt;SELECT * FROM assessment_data WHERE class  = 'R'&amp;lt;/code&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
The table &amp;lt;code&amp;gt;allegheny_county_parcel_boundaries&amp;lt;/code&amp;gt; is sourced from [https://data.wprdc.org/dataset/allegheny-county-parcel-boundaries1 its own dataset]. &amp;lt;syntaxhighlight lang=&amp;quot;postgresql&amp;quot;&amp;gt;&lt;br /&gt;
SELECT PB.cartodb_id,&lt;br /&gt;
       PB.the_geom,&lt;br /&gt;
       PB.the_geom_webmercator,&lt;br /&gt;
       PB.pin,&lt;br /&gt;
       HO.propaddrfull,&lt;br /&gt;
       HO.owneraddrfull,&lt;br /&gt;
       HO.usedesc&lt;br /&gt;
FROM (SELECT parid,&lt;br /&gt;
             usecode,&lt;br /&gt;
             usedesc,&lt;br /&gt;
             address1,&lt;br /&gt;
             address3,&lt;br /&gt;
             address4,&lt;br /&gt;
             changenoticeaddress1,&lt;br /&gt;
             changenoticeaddress3,&lt;br /&gt;
             changenoticeaddress4,&lt;br /&gt;
             homesteadflag,&lt;br /&gt;
             address1 || ' ' || address3 || '' || address4 as propaddrfull,&lt;br /&gt;
             changenoticeaddress1 || ' ' || changenoticeaddress3 || '' ||&lt;br /&gt;
             changenoticeaddress4                          as owneraddrfull&lt;br /&gt;
      FROM (&lt;br /&gt;
               SELECT *,&lt;br /&gt;
                      propertyhousenum || ' ' || propertyfraction || ' ' ||&lt;br /&gt;
                      propertyaddress                      as address1,&lt;br /&gt;
                      propertycity || ' ' || propertystate as address3,&lt;br /&gt;
                      propertyzip                          as address4&lt;br /&gt;
               FROM wprdc.assessments&lt;br /&gt;
               WHERE class = 'R') residential_parcels&lt;br /&gt;
      WHERE changenoticeaddress1 LIKE address1 || '%'&lt;br /&gt;
         OR homesteadflag = 'HOM') HO&lt;br /&gt;
         JOIN wprdc.allegheny_county_parcel_boundaries PB&lt;br /&gt;
              ON PB.pin = HO.parid&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Steve</name></author>
	</entry>
</feed>