I have ran across a few queries that use this where condition:
select ...
where Name like '%'
Is there a purpose for using a wildcard like that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WHERE Name LIKE '%'is equivalent toWHERE Name IS NOT NULL(at least in the tests I ran). The later is perhaps more efficient, and IMO much easier to see the intent of, but I supposelike '%'saves few keystrokes. Either way, its not just filler.