Project

General

Profile

« Previous | Next » 

Revision 13875

inputs/.TNRS/schema.sql: added taxon_best_match view

View differences:

schema.sql
557 557

  
558 558

  
559 559
--
560
-- Name: taxon_best_match; Type: VIEW; Schema: TNRS; Owner: -
561
--
562

  
563
CREATE VIEW taxon_best_match AS
564
 SELECT taxon_match.batch,
565
    taxon_match.match_num,
566
    taxon_match."Name_number",
567
    taxon_match."Name_submitted",
568
    taxon_match."Overall_score",
569
    taxon_match."Name_matched",
570
    taxon_match."Name_matched_rank",
571
    taxon_match."Name_score",
572
    taxon_match."Name_matched_author",
573
    taxon_match."Name_matched_url",
574
    taxon_match."Author_matched",
575
    taxon_match."Author_score",
576
    taxon_match."Family_matched",
577
    taxon_match."Family_score",
578
    taxon_match."Name_matched_accepted_family",
579
    taxon_match."Genus_matched",
580
    taxon_match."Genus_score",
581
    taxon_match."Specific_epithet_matched",
582
    taxon_match."Specific_epithet_score",
583
    taxon_match."Infraspecific_rank",
584
    taxon_match."Infraspecific_epithet_matched",
585
    taxon_match."Infraspecific_epithet_score",
586
    taxon_match."Infraspecific_rank_2",
587
    taxon_match."Infraspecific_epithet_2_matched",
588
    taxon_match."Infraspecific_epithet_2_score",
589
    taxon_match."Annotations",
590
    taxon_match."Unmatched_terms",
591
    taxon_match."Taxonomic_status",
592
    taxon_match."Accepted_name",
593
    taxon_match."Accepted_name_author",
594
    taxon_match."Accepted_name_rank",
595
    taxon_match."Accepted_name_url",
596
    taxon_match."Accepted_name_species",
597
    taxon_match."Accepted_name_family",
598
    taxon_match."Selected",
599
    taxon_match."Source",
600
    taxon_match."Warnings",
601
    taxon_match."Accepted_name_lsid",
602
    taxon_match.is_valid_match,
603
    taxon_match.scrubbed_unique_taxon_name
604
   FROM taxon_match
605
  WHERE (taxon_match."Selected" = 'true'::text);
606

  
607

  
608
--
609
-- Name: VIEW taxon_best_match; Type: COMMENT; Schema: TNRS; Owner: -
610
--
611

  
612
COMMENT ON VIEW taxon_best_match IS '
613
to modify:
614
SELECT util.recreate_view(''"TNRS"."taxon_best_match"'', $$
615
SELECT __
616
$$);
617
';
618

  
619

  
620
--
560 621
-- Name: taxon_match_input; Type: VIEW; Schema: TNRS; Owner: -
561 622
--
562 623

  
......
911 972

  
912 973

  
913 974
--
975
-- Name: taxon_best_match; Type: ACL; Schema: TNRS; Owner: -
976
--
977

  
978
REVOKE ALL ON TABLE taxon_best_match FROM PUBLIC;
979
REVOKE ALL ON TABLE taxon_best_match FROM bien;
980
GRANT ALL ON TABLE taxon_best_match TO bien;
981
GRANT SELECT ON TABLE taxon_best_match TO bien_read;
982

  
983

  
984
--
914 985
-- Name: taxon_match_input; Type: ACL; Schema: TNRS; Owner: -
915 986
--
916 987

  

Also available in: Unified diff