
28/11/2005, 10:28
|
| | Fecha de Ingreso: noviembre-2005
Mensajes: 658
Antigüedad: 19 años, 4 meses Puntos: 3 | |
CREATE VIEW V_CLIENTE_LLAMADO
(SERVICIO, RUT_CLIENTE1, CUENTA)
AS
select
case c.NMRO_EVENTO1
when '106' then 'TV'
when '107' then 'FONO'
when '108' then 'INTERNET'
when '109' then 'VISITAS'
else 'NADA'
end SERVICIO,
n.RUT_CLIENTE1,count(*) cuenta
from IVT_LOGSIVR_prueba n
having count(*) >= 2
group by n.NMRO_EVENTO1,n.RUT_CLIENTE1; |