Jump to content
Fórum Script Brasil
  • 0

Ajuda com SQL - Firebird


cesenna

Question

Olá Pessoal,

Estou pedindo ajuda para resolver o seguinte problema na query abaixo para rodar no Firebird:

SELECT

CLIENTE."PRODUTO" AS PRODUTO,

CLIENTE."QUANT" AS QUANT,

CLIENTE."CIDADE" AS CIDADE,

CLIENTE."TIPO" AS TIPO,

extract (day from cast (CLIENTE.DTCOMPRA as timestamp)) DIA,

extract (month from cast (CLIENTE.DTCOMPRA as timestamp)) MES,

extract(year from cast(CLIENTE.DTCOMPRA as timestamp)) ANO

FROM

CLIENTE

WHERE

TIPO LIKE 'PREFERENCIAL' AND DIA=$P{DIA} AND MES=$P{MES} AND ANO=$P{ANO}

ORDER BY CIDADE

A clausula WHERE não está funiconando para passagem dos parâmetros... As classes são as mesmas tanto para os parâmetros e campos.

Alguém tem alguma idéia do que pode estar errado? :huh:

Grato

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...