Jump to content


Recommended Posts

Hi All, I am wondering if someone could help me figure out some SQL code.

For an assignment question on a SQL database i need to return any names which have 'an' in them e.g Andy but I don't want to return any names with and e.g Jones and Co.

I understand the like '%an%' but it is also returning the 'and' strings.  How can I get around this?

Many thanks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...