Project

General

Profile

« Previous | Next » 

Revision 7063

schemas/vegbien.sql: Added unscrubbed_taxondetermination_view

View differences:

schemas/vegbien.my.sql
3401 3401

  
3402 3402

  
3403 3403
--
3404
-- Name: unscrubbed_taxondetermination_view; Type: VIEW; Schema: public; Owner: -
3405
--
3406

  
3407

  
3408

  
3409

  
3410
--
3404 3411
-- Name: userdefined; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3405 3412
--
3406 3413

  
......
8032 8039

  
8033 8040

  
8034 8041
--
8042
-- Name: unscrubbed_taxondetermination_view; Type: ACL; Schema: public; Owner: -
8043
--
8044

  
8045

  
8046

  
8047

  
8048

  
8049

  
8050

  
8051
--
8035 8052
-- Name: userdefined; Type: ACL; Schema: public; Owner: -
8036 8053
--
8037 8054

  
schemas/vegbien.sql
4508 4508

  
4509 4509

  
4510 4510
--
4511
-- Name: unscrubbed_taxondetermination_view; Type: VIEW; Schema: public; Owner: -
4512
--
4513

  
4514
CREATE VIEW unscrubbed_taxondetermination_view AS
4515
    SELECT taxondetermination.taxonoccurrence_id, tnrs."Time_submitted", tnrs."Name_number", tnrs."Name_submitted", tnrs."Overall_score", tnrs."Name_matched", tnrs."Name_matched_rank", tnrs."Name_score", tnrs."Name_matched_author", tnrs."Name_matched_url", tnrs."Author_matched", tnrs."Author_score", tnrs."Family_matched", tnrs."Family_score", tnrs."Name_matched_accepted_family", tnrs."Genus_matched", tnrs."Genus_score", tnrs."Specific_epithet_matched", tnrs."Specific_epithet_score", tnrs."Infraspecific_rank", tnrs."Infraspecific_epithet_matched", tnrs."Infraspecific_epithet_score", tnrs."Infraspecific_rank_2", tnrs."Infraspecific_epithet_2_matched", tnrs."Infraspecific_epithet_2_score", tnrs."Annotations", tnrs."Unmatched_terms", tnrs."Taxonomic_status", tnrs."Accepted_name", tnrs."Accepted_name_author", tnrs."Accepted_name_rank", tnrs."Accepted_name_url", tnrs."Accepted_name_species", tnrs."Accepted_name_family", tnrs."Selected", tnrs."Source", tnrs."Warnings", tnrs."Accepted_name_lsid" FROM (((taxondetermination LEFT JOIN taxonverbatim USING (taxonverbatim_id)) LEFT JOIN taxonlabel USING (taxonlabel_id)) LEFT JOIN "TNRS".tnrs ON ((tnrs."Name_submitted" = taxonlabel.taxonomicname))) WHERE (taxondetermination.iscurrent AND (taxondetermination.source_id <> source_by_shortname('TNRS'::text))) ORDER BY taxondetermination.taxondetermination_id;
4516

  
4517

  
4518
--
4511 4519
-- Name: userdefined; Type: TABLE; Schema: public; Owner: -; Tablespace: 
4512 4520
--
4513 4521

  
......
9200 9208

  
9201 9209

  
9202 9210
--
9211
-- Name: unscrubbed_taxondetermination_view; Type: ACL; Schema: public; Owner: -
9212
--
9213

  
9214
REVOKE ALL ON TABLE unscrubbed_taxondetermination_view FROM PUBLIC;
9215
REVOKE ALL ON TABLE unscrubbed_taxondetermination_view FROM bien;
9216
GRANT ALL ON TABLE unscrubbed_taxondetermination_view TO bien;
9217
GRANT SELECT ON TABLE unscrubbed_taxondetermination_view TO bien_read;
9218

  
9219

  
9220
--
9203 9221
-- Name: userdefined; Type: ACL; Schema: public; Owner: -
9204 9222
--
9205 9223

  

Also available in: Unified diff