Project

General

Profile

« Previous | Next » 

Revision 12905

validation/aggregating/specimens/NY/qualitative_validations_source_db_NYBG.VegCore.sql: moved notes to comments to after the query

View differences:

trunk/validation/aggregating/specimens/NY/qualitative_validations_source_db_NYBG.VegCore.sql
107 107

  
108 108
-- -------------------------------
109 109
-- 10. Count number of records by institution
110
-- Note: Majority should be from 'NY'; these are standard herbarium acronyms
111 110
-- -------------------------------
112 111
CREATE OR REPLACE VIEW _specimens_10_count_number_of_records_by_institution AS
113 112
SELECT specimen_duplicate_institutions, COUNT(*) AS records
114 113
FROM "Ecatalog_all"
115 114
GROUP BY specimen_duplicate_institutions;
116 115
/*
116
Note: Majority should be from 'NY'; these are standard herbarium acronyms
117

  
117 118
Check: should return 6 rows
118 119
*/
119 120

  
120 121
-- -------------------------------
121 122
-- 11. List of three standard political divisions
122
-- Note: character set issues may cause mis-matches. This query is a good way to reveal
123
-- character set issues, either in source db or in BIEN
124 123
-- -------------------------------
125 124
CREATE OR REPLACE VIEW _specimens_11_list_of_three_standard_political_divisions AS
126 125
SELECT DISTINCT country, "stateProvince", county
127 126
FROM "Ecatalog_all";
128 127
/*
128
Note: character set issues may cause mis-matches. This query is a good way to reveal character set issues, either in source db or in BIEN
129

  
129 130
Check: should return 5232 rows
130 131
*/
131 132

  
......
206 207

  
207 208
-- -------------------------------
208 209
-- 16. List distinct non-null specimen descriptions
209
-- Note: specimens descriptions in nybg extract is in column PlantFungDescription
210 210
-- -------------------------------
211 211
CREATE OR REPLACE VIEW _specimens_16_list_distinct_specimen_descriptions AS
212 212
SELECT "specimenDescription" AS "specimenDescription"
213 213
FROM "Ecatalog_all"
214 214
WHERE "specimenDescription" IS NOT NULL;
215 215
/*
216
Note: specimens descriptions in nybg extract is in column PlantFungDescription
217

  
216 218
Check: should return 158460 records
217 219
*/

Also available in: Unified diff