MySQL Forums
Forum List  »  Newbie

Re: select all vaues, including those not in row
Posted by: Peter Brawley
Date: October 28, 2021 10:33AM

You want rows where x=100 or x<>200? That'd be ...

select x from tbl where x=100 or x<>200;

or

select case when x=100 then x when x<>200 then null end as x from t;

Otherwise I'm unclear on the requirement, please elaborate.

Options: ReplyQuote


Subject
Written By
Posted
Re: select all vaues, including those not in row
October 28, 2021 10:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.