Hi to all,
When trying to query for a certain record, which method is usually faster:
1.) Querying for a record by using a single field in the WHERE clause of your query
Ex: SELECT * FROM Table1 WHERE col1 = 'a';
OR
2.) Querying for a record by adding an AND clause in the WHERE clause of your query
Ex: SELECT * FROM Table1 WHERE col1 = 'a' AND col2 ='b';
Is it right to conclude that method 1 is a bit faster than method 2 because it does not have the AND keyword and does not need to do a comparison?
Thanks and god bless