revision #1 sql issue