comparison artifacts/doc/conf/meta-data.xml @ 8553:17c476e90c07

bed height differences datacage: only supply differences where subtrahend is older than minuend or year is unknown.
author "Tom Gottfried <tom@intevation.de>"
date Mon, 16 Feb 2015 08:39:06 +0100
parents 76113b975829
children 17a3030bbda2
comparison
equal deleted inserted replaced
8552:fa57a2cb1dfa 8553:17c476e90c07
1884 b2.description AS b2desc, 1884 b2.description AS b2desc,
1885 b2.year AS b2year 1885 b2.year AS b2year
1886 FROM sta b1 1886 FROM sta b1
1887 JOIN sta b2 1887 JOIN sta b2
1888 ON b1.station = b2.station 1888 ON b1.station = b2.station
1889 AND b1.id &lt;&gt; b2.id) 1889 AND b1.id &lt;&gt; b2.id
1890 AND (b1.year &gt; b2.year OR b1.year IS NULL))
1890 SELECT DISTINCT b1id, b1desc, b1year, 1891 SELECT DISTINCT b1id, b1desc, b1year,
1891 b2id, b2desc, b2year 1892 b2id, b2desc, b2year
1892 FROM csta 1893 FROM csta
1893 ORDER BY b1desc, b2desc 1894 ORDER BY b1desc, b2desc
1894 </dc:statement> 1895 </dc:statement>

http://dive4elements.wald.intevation.org