Pergunta

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
Foi útil?

Solução

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

Outras dicas

No schema, but try:

select count(*) from app where lastUpdate Between '2013-11-10' AND '2013-11-21'
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top