I am generating a report between date, as shown below:
However,whenIenterthestartdate:
Startingyear:2014Startmonth:6and
FinalYear:2015FinalMonth:5
IfIusetheIN
clausethequeryreturnsonlymonths6and5andnotreturningmonth4,butwhenusedBETWEEN
doesnotreturnanydata.
Followthequery.
BETWEEN
WHEREv.verba_anoBETWEEN$anoAND$ano_fnalANDv.verba_mesBETWEEN$mesAND$mes_fim
IN
$WHERE="WHERE v.verba_ano IN($ano,$ano_fnal) AND v.verba_mes IN($mes,$mes_fim)";