Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT LIKE PROB 1

Status
Not open for further replies.

klornpallier

Technical User
Aug 28, 2002
98
GB
I need to COUNT the number of 'employees' that have 'forenames' beginning with M AND A but the query below dont work. Please help

SELECT COUNT(forenames) FROM employee
WHERE forenames LIKE 'M%'
AND LIKE 'A%'
 
With begin with MA:
SELECT COUNT(forenames) FROM employee
WHERE forenames LIKE 'MA%'
With begin with M or A:
SELECT COUNT(forenames) FROM employee
WHERE forenames LIKE 'M%' Or forenames LIKE 'A%'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top