how to use 'BETWEEN' condetion two times in one sql statement for same column or diffrent columns
Pergunta
this is sql statement give only one value
SELECT count(pn1) FROM pledges
WHERE date1
BETWEEN '2011-05-05' AND '2011-06-06'
i want use "between" more than one time for same column or for different columns in same table
for example i want use it in date1 more than one time or i want use it for date1 and date2 with different range
NOTE:I'm using java DB Derpy(JDBC-Derby)
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow