I want to optimize my query using short circuit evaluation as below:
Query 1:
Select emp_id, emp_name
From emp_table
Where emp_name = "xyz"
and emp_id >= 50;
Query 2 :
Select emp_id, emp_name
From emp_table
Where emp_name = "xyz"
and (emp_id >= 50 or 1 = 0);
Will the addition of or 1 = 0
condition (short circuit evaluation) in query 2 result in optimization?
How exactly would the short circuit evaluation work in above example?