Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,109 questions

40,780 answers

573 users

How to search for a specified pattern with the LIKE operator in a WHERE clause in SQL

Learn & Practice SQL


205 views
asked Sep 17, 2015 by avibootz
edited Sep 17, 2015 by avibootz

4 Answers

0 votes
--   selects all workers that the their first name start with the letter "d"

SELECT * FROM Workers
WHERE FirstName LIKE 'd%'

 





answered Sep 17, 2015 by avibootz
0 votes
--   selects all workers that the their first name end with the letter "f"

SELECT * FROM Workers
WHERE FirstName LIKE '%f'

 





answered Sep 17, 2015 by avibootz
0 votes
--   selects all workers that the their first name contain "ie"

SELECT * FROM Workers
WHERE FirstName LIKE '%ie%'

 





answered Sep 17, 2015 by avibootz
0 votes
--   selects all workers that the their first name NOT contain "ie"
 
SELECT * FROM Workers
WHERE FirstName NOT LIKE '%ie%'

 





answered Sep 17, 2015 by avibootz

Related questions

12 answers 453 views
1 answer 172 views
172 views asked Oct 6, 2015 by avibootz
1 answer 108 views
108 views asked Sep 18, 2015 by avibootz
3 answers 184 views
184 views asked Sep 18, 2015 by avibootz
3 answers 164 views
164 views asked Sep 18, 2015 by avibootz
...