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)
More than once for the same column:
Two different columns:
EDIT: Based on comment, perhaps you’re looking for something like this instead?