TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Justin N
NA
19
0
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.
Feb 11 2011 6:13 PM
SELECT id, name, city
FROM people
WHERE title = 'Manager' OR city = 'Boston' OR HireDate > '1/25/04'
Reply
Answers (
2
)
Failed to convert parameter value from a String to a Byte[].
help(advice) for select records from database