i have a 500 row table that i need to periodically dump to csv or excel format. the only gotcha is that i need to dump it into 10 separate files. there is a batch number column with approximately 10 unique values in the table and i need to create a separate file for each one.
i mostly work on the db engine side, can someone point me to some examples on how to do it?