for sql merge with JR