Solved

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

Posted on 2006-10-28
1
317 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 50 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
myqsl update statement on phpMyAdmin 8 37
mysql between clause 2 32
mysql disables rename 4 93
mysql database, schema and table creation 13 57
As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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