SyntaxFix
Write A Post
Hire A Developer
Questions
OK, after 2 years it's finally time to correct the syntax:
SELECT t1.value, t2.value FROM MyTable t1 JOIN MyTable t2 ON t1.id = t2.id WHERE t1.id = @id AND t1.status = @status1 AND t2.status = @status2