Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
How can I rewrite this SQL statement to not use OR statements in the WHERE clause and make it as efficient as possible? Its an interview question.
Justin N
13y
2.4k
1
Reply
SELECT id, name, city
FROM people
WHERE title = 'Manager' OR city = 'Boston' OR HireDate > '1/25/04'
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Failed to convert parameter value from a String to a Byte[].
help(advice) for select records from database