I have a query :
SELECT
MAX(date),
logId,
computerId
FROM
logTable
WHERE logId IN ('1','2','3')
But I want the IN clause test the computerId too like this :
logId = ‘1’ and computerId = ‘998874’,
logId = ‘2’ and computerId = ‘334211’,
…
How to do this ?
You would have to replace the
INstatement with multipleORstatementsAlternatively, if you have many conditions, it might be more readable to create an in-memory table for them and join on these conditions