I have a rather simple query:
SELECT ven.area_cd, ven.phone_no, ven.updt_dt_time
FROM vend_commcn ven
WHERE ( (ven.commcn_type_cd = 'VOICE')
AND (ven.vend_no = (SELECT vend_no
FROM purch_ord
WHERE user_ord_no = '78092'))
)
It returns more that one row sometimes. I would like it to return only one row based on the latest ven.updt_dt_time
Any help would be appreciated.
-Striker
SELECT ven.area_cd, ven.phone_no, ven.updt_dt_time
FROM vend_commcn ven
WHERE ( (ven.commcn_type_cd = 'VOICE')
AND (ven.vend_no = (SELECT vend_no
FROM purch_ord
WHERE user_ord_no = '78092'))
)
It returns more that one row sometimes. I would like it to return only one row based on the latest ven.updt_dt_time
Any help would be appreciated.
-Striker