Jump to content

Help with query that needs 2 WHERES


heldenbrau

Recommended Posts

I am trying to do the following query, but it produces an error, which I expect.

 

SELECT * FROM newgems WHERE cut='10 Hearts & Arrows' OR cut='8 Hearts & Arrows' WHERE colour='Lavender' OR colour='Light Champagne' OR colour='White' 

 

What do I use instead of WHERE?  Because if I use AND then it selects everything in White, not just '10 hearts & arrows' and '8 hearts & arrows'.  It needs to select only white, lavender or light champagne gemstones that are 8 or 10 hearts and arrows cut.

Link to comment
https://forums.phpfreaks.com/topic/218848-help-with-query-that-needs-2-wheres/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.