<?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=Estimating_Owner-Occupied_Properties</id>
	<title>Estimating Owner-Occupied Properties - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tessercat.net/index.php?action=history&amp;feed=atom&amp;title=Estimating_Owner-Occupied_Properties"/>
	<link rel="alternate" type="text/html" href="https://wiki.tessercat.net/index.php?title=Estimating_Owner-Occupied_Properties&amp;action=history"/>
	<updated>2026-04-08T07:17:38Z</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=Estimating_Owner-Occupied_Properties&amp;diff=7&amp;oldid=prev</id>
		<title>Steve: Created page with &quot;The [https://data.wprdc.org/dataset/property-assessments Allegheny County Property Assessments dataset] provides two primary signs of a parcel being owner-occupied.  # Whether...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tessercat.net/index.php?title=Estimating_Owner-Occupied_Properties&amp;diff=7&amp;oldid=prev"/>
		<updated>2021-11-15T23:53:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The [https://data.wprdc.org/dataset/property-assessments Allegheny County Property Assessments dataset] provides two primary signs of a parcel being owner-occupied.  # Whether...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The [https://data.wprdc.org/dataset/property-assessments Allegheny County Property Assessments dataset] provides two primary signs of a parcel being owner-occupied.&lt;br /&gt;
&lt;br /&gt;
# Whether or not the property receives a homestead exemption. (i.e. when the&amp;lt;code&amp;gt;homesteadflag&amp;lt;/code&amp;gt; column is &amp;lt;code&amp;gt;HOM&amp;lt;/code&amp;gt;)&lt;br /&gt;
# Whether or not the property address matches the owner's address (&amp;lt;code&amp;gt;changenoticeaddress[1-4]&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Simple example that filters the assessment dataset to &amp;lt;syntaxhighlight lang=&amp;quot;postgres&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
SELECT *&lt;br /&gt;
FROM allegheny_county_parcel_assessments&lt;br /&gt;
WHERE homesteadflag = 'HOM'&lt;br /&gt;
  --- you need to concat the fields like this to get compatible address formats between the two&lt;br /&gt;
  AND propertyaddress || ' ' || propertycity || ' ' || propertystate || ' ' || propertyzip =&lt;br /&gt;
      changenoticeaddress1 || ' ' || changenoticeaddress3 || ' ' || changenoticeaddress4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example SQL from a map that joins a subset of the Assessments dataset ('residential parcels' below) to geogrpahic data for display in a map&amp;lt;syntaxhighlight lang=&amp;quot;postgresql&amp;quot; line=&amp;quot;1&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'&lt;br /&gt;
           ) 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>