Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select * from Table where ID = 7 and Flag = 1
- UNION
- select * from Table where ID = 7
- WHERE NOT EXISTS (select * from Table where ID = 7 and Flag = 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement