USE training2

UPDATE 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
UPDATE 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
UPDATE 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
UPDATE 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
UPDATE 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
UPDATE 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
UPDATE code_value_lang SET description = 'Improvement status is uncertain or unknown.', modified_by = 48, modified_date = GETDATE() WHERE code_value_lang_id = 8
UPDATE 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

SELECT
	cv.code_value_id,
	group_name,
	value,
	cvl.title,
	cvl.description
FROM
	code_value cv
JOIN
	code_value_lang cvl
ON
	cv.code_value_id = cvl.code_value_id
WHERE
	group_name LIKE 'improvement%'
AND
	cvl.sys_lang_id = 1