I have a table Data which contains some data. Several rows belong to the same customer having the same customer_id (index to Customers table). This customer has answered some questions which they have question_id (index to Questions table). In the Data table, there is also the value column regarding the answer of the customer to question0
I am trying to select the customer_id for which the answers to question_id 1, 2, 3 are 0
I have also tried
SELECT distinct customer_id
FROM Data
WHERE value = 0
AND question_id IN (1, 2, 3);
but I am not getting the appropriate result which should be 24 which is the customer_id of the customer that has answered 0 to the questions with question_id 1, 2 and 3.
