i have query with this problem..
any people can help me?
this is my query
select t_tarif.lama,
t_tarif.id,
t_tarif.kurir,
t_tarif.id_propd,
t_lokasi.propinsi as 'propinsi_asal',
t_tarif.kota_asal,
t_tarif.id_propt,
(select
t_lokasi.propinsi
from t_lokasi,t_tarif
where t_lokasi.id_prop =t_tarif.id_propt)as 'propinsi_tujuan',
t_tarif.kota_tujuan,
t_tarif.tarif
from t_tarif,t_lokasi
where t_lokasi.id_prop = t_tarif.id_propd
The problem is in this select:
It can only return 1 value and it’s returning more.
A possible solution is using
JOIN:I’ve used a left join to get the other clause because it seemed that’s what you needed.