I have some SQL queries which already look for very specific data in tables. I can add a larger scope clause to the filtering, but I was wondering if this was going to result in any performance improvement ?
EDIT: this is for a program which potentially makes these queries quite a lot.
For example, let's assume a classical employee table. In the WHERE clause I already have
--SQL
WHERE employee-name = :employee-name
AND
employee-number = :employee-number
WHERE employee-name = :employee-name
AND
employee-number = :employee-number
Would it have any incidence if I add a clause
--SQL
AND employee-class = 'E'
AND employee-class = 'E'
which has obviously a much larger scope ? Let me precise that the employee number is actually stored on CHAR, not INTEGER nor VARCHAR.