Question

I'm trying the following and not working - producing zero results.

Quite tired after a 20hr + programming marathon but can't spot the mistake.

select count(*) from app where lastUpdate Between 2013-11-10 AND 2013-11-21
Was it helpful?

Solution

When dates are not quoted then they would perform calculations which would make the query actually be:

select count(*) from app where lastUpdate Between 1992 AND 1981

OTHER TIPS

No schema, but try:

select count(*) from app where lastUpdate Between '2013-11-10' AND '2013-11-21'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top