Hi Again! I'm trying to optimize a database that has just tons and tons of indexes. I've already identified several that don't need to be there...
Hi All, Thanks for the useful tips. The Negative's COALESCE solution works fine for columns where you cannot have NULLs. I also agree that using...
You know, I never even considered using COALESCE. Let's see if I understand your solution correctly:<br /><br />When @var1 is NULL, then field1 =...
I have a query that handles searching through an activity log table. The users can select any of about 20 parameters to use in the search (multiple...
Separate names with a comma.