[firebase-br] Invalid request BLR at offset 238 context already in use (BLR error)

Moacir - GMAIL prismars em gmail.com
Qui Maio 9 11:27:34 -03 2013


Tire o acento do NÃO !!

Deixe simplesmente NAO

Moacir

Em 09/05/2013 11:15, Gugui escreveu:
> Olá pessoal, alguem me ajuda com essa view ?
>
> se eu tiro o
>         WHEN 'V' then
>         case when exists(select 1 from FORMAPGTO f WHERE F.CKB1 = 'T'
>         and f.IDFORMAPGTO = a.idformapgto)
>         then '<SIM>' ELSE '<NÃO>' END
>
> aí cria a View
>
> CREATE VIEW temp ( simnao )
> AS
> select
> CASE (SELECT FIRST 1 P.TIPO FROM PEDIDO P WHERE P.IDPEDIDO = A.IDPEDIDO)
>     WHEN 'P' THEN
>         case when exists(select 1 from CLIENTE_FORMAPGTO cf
>         inner join pedido p on p.idcliente = cf.IDCLIENTE
>         where p.idpedido = a.idpedido and cf.IDFORMAPGTO = a.idformapgto)
>         then '<SIM>' ELSE '<NÃO>' END
>     WHEN 'V' then
>         case when exists(select 1 from FORMAPGTO f WHERE F.CKB1 = 'T'
>         and f.IDFORMAPGTO = a.idformapgto)
>         then '<SIM>' ELSE '<NÃO>' END
>     ELSE
>        NULL
>     END
>
> FROM PRESTACAO_PEDIDO a;
>
> grato qq ajuda
>
>
> ______________________________________________
> FireBase-BR (www.firebase.com.br) - Hospedado em www.locador.com.br
> Para saber como gerenciar/excluir seu cadastro na lista, use: 
> http://www.firebase.com.br/fb/artigo.php?id=1107
> Para consultar mensagens antigas: http://firebase.com.br/pesquisa
>





Mais detalhes sobre a lista de discussão lista