Manhattan Associates interview question

About java basic sql querys