select TransactionItemId as documentid, booktype from tblTransactionItem where book = '4216' and page = '649' and booktype = 'OR' and doctype not in ('ADP', 'CSUP', 'CERDC', 'DOMR', 'MIL', 'JUV', 'PRBC', 'PRO', 'FL', 'INM')