select s.msisdn,h.complete_date, r.busi_type,r.busi_remark
from HIS_ORDERINFO h,inf_subscriber_all s,RUL_BUSINESS_CODE r
where h.sub_id=s.sub_id
and r.busi_type=h.order_type
and (r.busi_type='CB050' or r.busi_type='CD013')
select s.msisdn,h.complete_date, r.busi_type,r.busi_remark
from HIS_ORDERINFO h,inf_subscriber_all s,RUL_BUSINESS_CODE r
where h.sub_id=s.sub_id
and r.busi_type=h.order_type
and (r.busi_type='CB050' or r.busi_type='CD013')
and s.msisdn='2028580109'
เอามาตัวเดียว
Code
select s.msisdn,h.complete_date, r.busi_type,r.busi_remark
from HIS_ORDERINFO h,inf_subscriber_all s,RUL_BUSINESS_CODE r
where h.sub_id=s.sub_id
and r.busi_type=h.order_type
and r.busi_type='CD013'
and s.msisdn='2028580109'