Ticket #2046: Trac_2046.sql

File Trac_2046.sql, 2.4 KB (added by Benjamin Haag, 6 years ago)
Line 
1USE training2
2
3UPDATE code_value_lang SET description = 'Material used to support breeding activities, developed through plant breeding, e.g. pre-breeding lines.', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 1
4UPDATE code_value_lang SET description = 'An assemblage of plants that has been selected for a particular character or combination of characters and that is clearly distinct, uniform, and stable in these characters and that when propagated by appropriate means retains these characters. (from International Code of Nomenclature for Cultivated Plants). The commonly used term "variety" is a taxonomic designation and should not be used as a substitute for "cultivar".', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 3
5UPDATE code_value_lang SET description = 'Material is cultivated, however improvement level not known.', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 4
6UPDATE code_value_lang SET description = 'Material generally used for research, not breeding, developed by scientist or breeder with one or a few specific genetic traits. Interchangeable with "genetic stock". ', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 5
7UPDATE code_value_lang SET description = 'Material used by farmers, developed from many years of farmer-directed selection, and having a unique set of traits reflecting adapation to local conditions.', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 6
8UPDATE code_value_lang SET description = 'Material is the base or root portion of a grafted plant.', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 7
9UPDATE code_value_lang SET description = 'Improvement status is uncertain or unknown.', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 8
10UPDATE code_value_lang SET description = 'Material growing in non-cultivated area, natural or disturbed. Can be either a species that is cultivated (i.e. naturalized, escape, or undomesticated form) or non-cultivated (i.e. wild).', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 9
11
12SELECT
13 cv.code_value_id,
14 group_name,
15 value,
16 cvl.title,
17 cvl.description
18FROM
19 code_value cv
20JOIN
21 code_value_lang cvl
22ON
23 cv.code_value_id = cvl.code_value_id
24WHERE
25 group_name LIKE 'improvement%'
26AND
27 cvl.sys_lang_id = 1