DisputeSoft interview question

two problems (one is using programming language to do some file manipulation and image processing, the other one is simple SQL syntax)