Revision 12888
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/validation/aggregating/specimens/qualitative_validations_specimens.sql | ||
---|---|---|
19 | 19 |
-- 2. Count of unique (verbatim) non-null families |
20 | 20 |
-- Check: Full outer join to equivalent query on BIEN3 db should return 1 row |
21 | 21 |
-- ------------------------------- |
22 |
CREATE OR REPLACE VIEW _specimens_02_count_of_unique_verbatim_non_null_families AS
|
|
22 |
CREATE OR REPLACE VIEW _specimens_02_count_of_unique_verbatim_families AS |
|
23 | 23 |
|
24 | 24 |
-- ------------------------------- |
25 | 25 |
-- 3. List of verbatim families |
... | ... | |
31 | 31 |
-- 4. Count of unique (verbatim) non-null species, without author |
32 | 32 |
-- Check: Full outer join to equivalent query on BIEN3 db should return 1 row |
33 | 33 |
-- ------------------------------- |
34 |
CREATE OR REPLACE VIEW _specimens_04_count_of_unique_verbatim_non_null_species_without_author AS
|
|
34 |
CREATE OR REPLACE VIEW _specimens_04_count_of_unique_verbatim_species_without_author AS |
|
35 | 35 |
|
36 | 36 |
-- ------------------------------- |
37 | 37 |
-- 5. List of verbatim species, excluding author |
... | ... | |
43 | 43 |
-- 6. Count of unique (verbatim) non-null subspecific taxa, without author |
44 | 44 |
-- Check: Full outer join to equivalent query on BIEN3 db should return 1 row |
45 | 45 |
-- ------------------------------- |
46 |
CREATE OR REPLACE VIEW _specimens_06_count_of_unique_verbatim_non_null_subspecific_taxa_without_author AS
|
|
46 |
CREATE OR REPLACE VIEW _specimens_06_count_of_unique_verbatim_subsp_taxa_without_author AS
|
|
47 | 47 |
|
48 | 48 |
-- ------------------------------- |
49 | 49 |
-- 7. List of verbatim subspecific taxa, without author |
... | ... | |
55 | 55 |
-- 8. Count of unique (verbatim) taxa including author, for all taxa identified at least to genus |
56 | 56 |
-- Check: Full outer join to equivalent query on BIEN3 db should return 1 row |
57 | 57 |
-- ------------------------------- |
58 |
CREATE OR REPLACE VIEW _specimens_08_count_of_unique_verbatim_taxa_including_author_for_all_taxa_identified_at_least_to_genus AS
|
|
58 |
CREATE OR REPLACE VIEW _specimens_08_count_of_unique_verbatim_author_taxa_with_genus AS
|
|
59 | 59 |
|
60 | 60 |
-- ------------------------------- |
61 | 61 |
-- 9. List of unique (verbatim) taxa including author, for all taxa identified at least to genus |
62 | 62 |
-- Check: Full outer join to equivalent query on BIEN3 db should return 45997 rows |
63 | 63 |
-- ------------------------------- |
64 |
CREATE OR REPLACE VIEW _specimens_09_list_of_unique_verbatim_taxa_including_author_for_all_taxa_identified_at_least_to_genus AS
|
|
64 |
CREATE OR REPLACE VIEW _specimens_09_list_of_unique_verbatim_author_taxa_with_genus AS
|
|
65 | 65 |
|
66 | 66 |
-- ------------------------------- |
67 | 67 |
-- 10. Count number of records by institution |
... | ... | |
83 | 83 |
-- plus total records |
84 | 84 |
-- Check: Full outer join to equivalent query on BIEN3 db should return 309396 rows |
85 | 85 |
-- ------------------------------- |
86 |
CREATE OR REPLACE VIEW _specimens_12_check_distinct_collector_names_collection_numbers_collection_dates AS
|
|
86 |
CREATE OR REPLACE VIEW _specimens_12_distinct_collector_name_collect_num_date_w_count AS
|
|
87 | 87 |
|
88 | 88 |
-- ------------------------------- |
89 | 89 |
-- 13. Count of all verbatim Latitude and Longitude values, as well as all |
90 | 90 |
-- latitude and longitude values that are decimals numbers |
91 | 91 |
-- Check: full outer join to equivalent query against BIEN3 should return 1 row |
92 | 92 |
-- ------------------------------- |
93 |
CREATE OR REPLACE VIEW _specimens_13_count_of_all_verbatim_latitude_and_longitude_values_as_well_as_all AS
|
|
93 |
CREATE OR REPLACE VIEW _specimens_13_count_of_all_verbatim_and_decimal_lat_long AS
|
|
94 | 94 |
|
95 | 95 |
-- ------------------------------- |
96 | 96 |
-- 14. Count of all verbatim Latitude and Longitude values that are not valid values |
97 | 97 |
-- of decimal latitude or decimal longitude |
98 | 98 |
-- Check: full outer join to equivalent query against BIEN3 should return 1 row |
99 | 99 |
-- ------------------------------- |
100 |
CREATE OR REPLACE VIEW _specimens_14_count_of_all_verbatim_latitude_and_longitude_values_that_are_not_valid_values AS
|
|
100 |
CREATE OR REPLACE VIEW _specimens_14_count_of_all_invalid_verbatim_lat_long AS
|
|
101 | 101 |
|
102 | 102 |
-- ------------------------------- |
103 | 103 |
-- 15. List distinct non-null locality descriptions |
104 | 104 |
-- Check: full outer join to equivalent query against BIEN3 should return 125592 records |
105 | 105 |
-- ------------------------------- |
106 |
CREATE OR REPLACE VIEW _specimens_15_list_distinct_non_null_locality_descriptions AS
|
|
106 |
CREATE OR REPLACE VIEW _specimens_15_list_distinct_locality_descriptions AS |
|
107 | 107 |
|
108 | 108 |
-- ------------------------------- |
109 | 109 |
-- 16. List distinct non-null specimen descriptions |
110 | 110 |
-- Check: full outer join to equivalent query against BIEN3 should return 158460 records |
111 | 111 |
-- Note: specimens descriptions in nybg extract is in column PlantFungusDescription |
112 | 112 |
-- ------------------------------- |
113 |
CREATE OR REPLACE VIEW _specimens_16_list_distinct_non_null_specimen_descriptions AS |
|
113 |
CREATE OR REPLACE VIEW _specimens_16_list_distinct_specimen_descriptions AS |
Also available in: Unified diff
validation/aggregating/specimens/qualitative_validations_specimens.sql: shortened view names to fit within the 63-char limit without truncation