MySQL Forums
Forum List  »  Newbie

Re: correct way to sub select ?
Posted by: Jason Carroll
Date: April 09, 2016 09:28PM

Hi,

I have never created a query like this...

I wish to get all the rows where...

`errors`.`isWebSiteLive` != 'HTTP/1.0 200 OK' AND `errors`.`isWebSiteLive` != 'HTTP/1.1 200 OK' AND `errors`.`isWebSiteLive` != 'HTTP/1.0 301 Moved Permanently' AND `errors`.`isWebSiteLive` != 'HTTP/1.1 301 Moved Permanently'

and then add underneath these results...

`oks`.`isWebSiteLive` = 'HTTP/1.0 200 OK' OR `oks`.`isWebSiteLive` = 'HTTP/1.1 200 OK' OR `oks`.`isWebSiteLive` = 'HTTP/1.0 301 Moved Permanently' OR `oks`.`isWebSiteLive` = 'HTTP/1.1 301 Moved Permanently'

Options: ReplyQuote


Subject
Written By
Posted
Re: correct way to sub select ?
April 09, 2016 09:28PM


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.