Ireport report showing up without data

Asked

Viewed 61 times

1

I am making a report with Ireport and passing a parameter with date range my sql in the report SELECT * FROM venda WHERE data between (venda.data = $P{dataInicial}) AND (venda.data = $P{dataFinal})

However, when testing the report in preview, I select the interval date at the prompt and come the screen did..

Does anyone have any idea ?

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

1


Or use:

SELECT * FROM venda WHERE data between $P{dataInicial} AND $P{dataFinal};

or use:

SELECT * FROM venda WHERE venda.data >= $P{dataInicial} AND venda.data <= $P{dataFinal};

Browser other questions tagged

You are not signed in. Login or sign up in order to post.