Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SELECT ... FROM ...WHERE .. (. OR .).. AND ...

Posted on 2006-10-28
1
Medium Priority
?
336 Views
Last Modified: 2006-11-18
SELECT .. FROM `jobs` WHERE `jobs`.`description` LIKE '%finance%' OR `jobs`.`title` LIKE '%finance%' AND `jobs`.`rId` = 5 AND `jobs`.`status` = 1 AND `recruiters`.`status` = 1

This query gives too many results.
With OR I mean only the jobs.description OR jobs.title.

How can i fix this? Thanks in advance.



0
Comment
Question by:thijs321
1 Comment
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
ID: 17825254
SELECT .. FROM `jobs` WHERE (`jobs`.`description` LIKE '%finance%' OR `jobs`.`title` LIKE '%finance%' ) AND `jobs`.`rId` = 5 AND `jobs`.`status` = 1 AND `recruiters`.`status` = 1
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month6 days, 4 hours left to enroll

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question