Project

General

Profile

« Previous | Next » 

Revision 11718

bugfix: inputs/CVS/observation_/create.sql: only include one soilObs for each observation (using DISTINCT ON), rather than just left-joining them

View differences:

inputs/CVS/observation_/create.sql
1
SELECT *
1
SELECT DISTINCT ON ("OBSERVATION_ID") *
2 2
FROM observation
3 3
LEFT JOIN "soilObs" USING ("OBSERVATION_ID")
4
ORDER BY "OBSERVATION_ID", "SOILOBS_ID"

Also available in: Unified diff