
create VIEW v_selTipoPart
AS
SELECT        val AS value, CASE WHEN val = 'A' THEN 'Anime' WHEN val = 'P' THEN 'Produzione' ELSE val + ' (n.d.)' END AS label
FROM            (SELECT DISTINCT ClassifArticolo AS val
                          FROM            RilPro.AnagParticolari) AS derivedtbl_1
