I have been trying to execute this query but it’s not working.
Would appreciate if anyone helps;
SELECT DISTINCT(fld_tech_id)
FROM tbl_tech_properties
WHERE fld_tech_category_value_id = 236
AND fld_tech_category_value_id = 234
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s impossible for your
WHEREcondition to ever match because it is tested for each row in the table and no single row can havefld_tech_category_value_idequal to both 234 and 236 at the same time. Instead you should group by fld_tech_id and check that your group contains two rows.See it working online: sqlfiddle