Just to add to what Robert said:
In the first query, You are fetching 600 rows but doing a replace for only 200 of them. Count (first query Total Records) is showing how many rows are fetched and it only depends on the condition bank='aa'.