SyntaxFix
Write A Post
Hire A Developer
Questions
// not familiar with C#, but C#'s equivalent of PHP's: $count = count($productIds); // where $productIds is the array you also use in IN (...) SELECT IF ((SELECT COUNT(*) FROM Products WHERE ProductID IN (1, 10, 100)) = $count, 1, 0)