Changes between Version 34 and Version 35 of CookBook join Temperature_CCM
- Timestamp:
- May 21, 2010 10:58:56 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook join Temperature_CCM
v34 v35 23 23 GROUP BY gridid, distance, gid, winter, summer,the_geom 24 24 ); 25 -- to extract only the min distance you need a join 25 26 27 select * from( 28 select min(distance),gid,pk from temperature.tmp_ccm 29 group by distance, gid,pk) as sub1 30 join temperature.tmp_ccm t on sub1.pk=t.pk; 31 32 -- if no column in geometry column add it using 26 33 INSERT INTO geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, "type") 27 34 SELECT '', 'temperature', 'tmp_ccm', 'the_geom', ST_CoordDim(the_geom), ST_SRID(the_geom), GeometryType(the_geom)