Hi Jayanth
This may happen you one of your where clause is Time or Timestamp and the MII server and DB are in different timezones.
Please set the Timezone in MII Query Date and Time setup to get the information correctly.
MII converts the server time to the timezone of the DB and asks for the data. Any SQL tool does not do this and directly returns the data for the time provided. So you may see differences.
Regards
Partha