Solved

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

Posted on 2006-10-28
1
313 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 142

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP strip quotes and line feeds out of array 13 48
Best database setup for image uploads 6 52
MySQL Init Waits 25 82
Insert data into database 2 37
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…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now