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
Вопрос
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
Решение
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
Другие советы
No schema, but try:
select count(*) from app where lastUpdate Between '2013-11-10' AND '2013-11-21'