Node-Red CSV datatype

I get the data in my MSSQL.
Than I select it from this MSSQL to get a Backup File with the Logs in CSV. But If some entries doesn't change because the data don't changed already. It should not do me another entry in my CSV. So i want get a duplicate row in CSV.