Revision 7615
Added by Aaron Marcuse-Kubitza almost 12 years ago
schemas/vegbien.my.sql | ||
---|---|---|
860 | 860 |
|
861 | 861 |
|
862 | 862 |
-- |
863 |
-- Name: analytical_plot; Type: VIEW; Schema: public; Owner: - |
|
864 |
-- |
|
865 |
|
|
866 |
|
|
867 |
|
|
868 |
|
|
869 |
-- |
|
863 | 870 |
-- Name: analytical_specimen; Type: VIEW; Schema: public; Owner: - |
864 | 871 |
-- |
865 | 872 |
|
... | ... | |
7281 | 7288 |
|
7282 | 7289 |
|
7283 | 7290 |
-- |
7291 |
-- Name: analytical_plot; Type: ACL; Schema: public; Owner: - |
|
7292 |
-- |
|
7293 |
|
|
7294 |
|
|
7295 |
|
|
7296 |
|
|
7297 |
|
|
7298 |
|
|
7299 |
|
|
7300 |
-- |
|
7284 | 7301 |
-- Name: analytical_specimen; Type: ACL; Schema: public; Owner: - |
7285 | 7302 |
-- |
7286 | 7303 |
|
schemas/vegbien.sql | ||
---|---|---|
1736 | 1736 |
|
1737 | 1737 |
|
1738 | 1738 |
-- |
1739 |
-- Name: analytical_plot; Type: VIEW; Schema: public; Owner: - |
|
1740 |
-- |
|
1741 |
|
|
1742 |
CREATE VIEW analytical_plot AS |
|
1743 |
SELECT analytical_stem.datasource, analytical_stem.country, analytical_stem."stateProvince", analytical_stem.county, analytical_stem.locality, analytical_stem."decimalLatitude", analytical_stem."decimalLongitude", analytical_stem."coordinateUncertaintyInMeters", analytical_stem."coordinateSource_bien", analytical_stem."georeferenceProtocol_bien", analytical_stem.geovalid_bien, analytical_stem."isNewWorld_bien", analytical_stem."projectID", analytical_stem."locationID", analytical_stem."locationName", analytical_stem.subplot, analytical_stem."individualCode", analytical_stem."elevationInMeters", analytical_stem."plotArea_ha", analytical_stem."samplingProtocol", analytical_stem."recordedBy", analytical_stem."recordNumber", analytical_stem."dateCollected", analytical_stem.family_verbatim, analytical_stem."scientificName_verbatim", analytical_stem."scientificNameAuthorship_verbatim", analytical_stem."identifiedBy", analytical_stem."dateIdentified", analytical_stem."identificationRemarks", analytical_stem.family_matched, analytical_stem."taxonName_matched", analytical_stem."scientificNameAuthorship_matched", analytical_stem."higherPlantGroup_bien", analytical_stem.family, analytical_stem.genus, analytical_stem."speciesBinomialWithMorphospecies", analytical_stem."taxonName", analytical_stem."scientificNameAuthorship", analytical_stem.threatened_bien, analytical_stem."growthForm", analytical_stem."reproductiveCondition", analytical_stem.cultivated_bien, analytical_stem."cultivatedBasis_bien", analytical_stem."coverPercent", analytical_stem."diameterBreastHeight_cm", analytical_stem.height_m, analytical_stem.tag, analytical_stem."organismX_m", analytical_stem."organismY_m", analytical_stem."taxonOccurrenceID", analytical_stem."authorTaxonCode", analytical_stem."individualObservationID", analytical_stem."authorStemCode" FROM analytical_stem; |
|
1744 |
|
|
1745 |
|
|
1746 |
-- |
|
1739 | 1747 |
-- Name: analytical_specimen; Type: VIEW; Schema: public; Owner: - |
1740 | 1748 |
-- |
1741 | 1749 |
|
... | ... | |
8544 | 8552 |
|
8545 | 8553 |
|
8546 | 8554 |
-- |
8555 |
-- Name: analytical_plot; Type: ACL; Schema: public; Owner: - |
|
8556 |
-- |
|
8557 |
|
|
8558 |
REVOKE ALL ON TABLE analytical_plot FROM PUBLIC; |
|
8559 |
REVOKE ALL ON TABLE analytical_plot FROM bien; |
|
8560 |
GRANT ALL ON TABLE analytical_plot TO bien; |
|
8561 |
GRANT SELECT ON TABLE analytical_plot TO bien_read; |
|
8562 |
|
|
8563 |
|
|
8564 |
-- |
|
8547 | 8565 |
-- Name: analytical_specimen; Type: ACL; Schema: public; Owner: - |
8548 | 8566 |
-- |
8549 | 8567 |
|
Also available in: Unified diff
schemas/vegbien.sql: Added analytical_plot view