7013-solunionRiskRequest #2190
|
@ -2,8 +2,8 @@ DELIMITER $$
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditInsurance_getRisk`()
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditInsurance_getRisk`()
|
||||||
BEGIN
|
BEGIN
|
||||||
/**
|
/**
|
||||||
jgallego marked this conversation as resolved
Outdated
|
|||||||
* Devuelve el riesgo de los clientes que estan asegurados
|
* Devuelve el riesgo de los clientes que estan asegurados
|
||||||
jgallego marked this conversation as resolved
Outdated
carlosap
commented
Falta un espacio al principio de comentario Falta un espacio al principio de comentario
|
|||||||
*/
|
*/
|
||||||
CREATE OR REPLACE TEMPORARY TABLE tmp.client_list
|
CREATE OR REPLACE TEMPORARY TABLE tmp.client_list
|
||||||
(PRIMARY KEY (Id_Cliente))
|
(PRIMARY KEY (Id_Cliente))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
|
@ -23,8 +23,8 @@ BEGIN
|
||||||
c.name,
|
c.name,
|
||||||
c.credit clientCredit,
|
c.credit clientCredit,
|
||||||
c.creditInsurance solunion,
|
c.creditInsurance solunion,
|
||||||
cast(r.risk as DECIMAL(10,0)) risk,
|
CAST(r.risk AS DECIMAL(10,0)) risk,
|
||||||
jgallego marked this conversation as resolved
Outdated
carlosap
commented
Funciones en mayúsculas Funciones en mayúsculas
|
|||||||
cast(c.creditInsurance - r.risk as decimal(10,0)) riskAlive,
|
CAST(c.creditInsurance - r.risk AS DECIMAL(10,0)) riskAlive,
|
||||||
cac.invoiced billedAnnually,
|
cac.invoiced billedAnnually,
|
||||||
c.dueDay,
|
c.dueDay,
|
||||||
ci.grade,
|
ci.grade,
|
||||||
|
|
Loading…
Reference in New Issue
Comentarios sin tabular
fet