I have a query which does validation before inserting/updating which is like
SELECT TOP(1) @result_category_id = category_id
FROM category_table
WHERE language_id = @language_id
AND status_id = @status_id
AND type_id = @type_id
AND category_str = @category_str
I would like to know if there would be better performance if i compare the string 1'st instead of the id's ( i.e. all the id's are integer fields , but the result set returned from these general id's would be much bigger)