Since we have not yet developed the ability to read your screen telepathically, you will need to be more specific than "is not working".
in reply to Problem in fetching columns from select query
Please specify what error, if any you get, and if none, what you expect, and what you see. The location of the line that fails would help too.
Are you sure $Acct contains what you expect it to ? Does it match $AcctNbr after the "execute" ? Does it exist in the database table USAGE_FLATF_DLY_INDEX_1 ?
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."