diff --git a/procedures.sql b/procedures.sql index b54ef73..e4958c5 100644 --- a/procedures.sql +++ b/procedures.sql @@ -11,11 +11,11 @@ IS P2.NOMBRE, SUM( CASE - WHEN TRIM(LOWER(M.DESCRIPCION)) = 'oro' THEN + WHEN LOWER(M.DESCRIPCION) = 'oro' THEN 3 - WHEN TRIM(LOWER(M.DESCRIPCION)) = 'plata' THEN + WHEN LOWER(M.DESCRIPCION) = 'plata' THEN 2 - WHEN TRIM(LOWER(M.DESCRIPCION)) = 'bronce' THEN + WHEN LOWER(M.DESCRIPCION) = 'bronce' THEN 1 ELSE 0