SELECT t.timeenteractive,t.activestop,
TRUNC(MONTHS_BETWEEN (t.activestop,t.timeenteractive)) || 'วัน' "DAY"
from lbidw_laos.tb_dw_user_info_day t
where t.statis_date=to_char(sysdate -1 ,'yyyymmdd')
and t.currentstate='2'
and t.usertype=0
order by t.msisdn desc