IBM interview question

one is for SQL; one is for programing