Answer the question
In order to leave comments, you need to log in
How to form the correct sql query?
Have a request
SELECT * FROM table WHERE `status` = 'maubert' and`AssosUser` in ('LAROQUE','N.C.') and `telepro` in ('DENIS','MANGEL','MORANGE')
Answer the question
In order to leave comments, you need to log in
SELECT *
FROM `table`
WHERE `status`='maubert'
AND (
(`AssosUser`='LAROQUE' AND `telepro`='DENIS') OR
(`AssosUser` IN ('LAROQUE', 'N.C.') AND `telepro` IN ('MANGEL', 'MORANGE')
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question