db2 "select distinct fid_cust from session where DAT_END between TIMESTAMP('2017-01-01 00:00:00') and TIMESTAMP('2017-01-31 00:00:00')" FID_CUST -------------------------------------------------- Lena2 TEST