That was my first thought also (that the OP doesn't really need CSV parsing), but a) two CSV tables can contain identical rows in different orders so a diff approach may not work, b) fields may contain embedded newlines so a line-oriented approach may not work, c) if requirements change and the comparison is done on key fields rather than whole records, the CSV approach will scale up.