I want to get values of c.cf_condition
, c.cf_condition_value
and c.cf_warranty
from table 2. These attributes are not in table 1. I used every join condition but nothing happened. These values can be show with inner join but without WHERE p.cf_IsDailyDeal=1
condition. If i am not right this where clause then my required rows not shown. I want to fetch three attributes but with this where clause:
SELECT p.im_folder,
p.im_name,
p.cf_price_check,
p.category_id,
p.classifieds_id,
p.cf_price_check,
p.classifieds_id,
p.cf_title,
p.cf_addeddate,
p.cf_price,
(SELECT c.cf_condition FROM as_classifieds as c WHERE c.classifieds_id = p.classifieds_id),
(SELECT c.cf_condition_value FROM as_classifieds as c WHERE c.classifieds_id = p.classifieds_id),
(SELECT c.cf_warranty FROM as_classifieds as c WHERE c.classifieds_id = p.classifieds_id)
FROM as_index_classifieds as p
WHERE p.cf_IsDailyDeal=1;