$ 0 0 Your WHERE-condition on LogonDate is not valid, 11/28/2013 is not a DATE, it's a numeric calculation resulting in an INTEGER 0. sel StatementText from dbc.accesslog where UserName= 'abcd' and LogonDate=DATE '2013/11/28';
Your WHERE-condition on LogonDate is not valid, 11/28/2013 is not a DATE, it's a numeric calculation resulting in an INTEGER 0.