jonaHill87 Posted June 15, 2008 Share Posted June 15, 2008 Hi all. I'm trying to query a last name field in my table beginning with specific letters. So for example if I want to retrieve names beginning with "b", I need to query the first character of the field for each record. I thought I could use "LIKE" but correct me if I'm wrong, "LIKE" searches for the first occurance of "b" in the string. Quote Link to comment Share on other sites More sharing options...
Barand Posted June 15, 2008 Share Posted June 15, 2008 WHERE name LIKE 'b%' will find those beginning with "b" WHERE name LIKE '%b%' will find those containing "b" Quote Link to comment Share on other sites More sharing options...
jonaHill87 Posted June 15, 2008 Author Share Posted June 15, 2008 Ah. Ok, great. Thanks, I was using the second percentage one. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.