SQL to Excel conversion

When I tried converting one the SQL file to excel online, System has given me excel file, but there was no record in the same. I would appreciate if someone can help me.

@nitkot

Could you please share the problematic SQL file?