Posts by Luis • 16 points
1 post
-
0
votes2
answers132
viewsA: Condition (WHERE) with IF
select * from posts_promovidos where posts_promovidos.status = "N" inner join (select * from posts where posts.id not in posts_promovidos) p on p.id = posts_promovidos.id