Jump to content

Any and All keywords


Recommended Posts

Iam using DB browser for SQLite and it was working fine. I started using 'ALL' and 'ANY' operators and suddenly am getting error.

"Execution finished with errors.

Result: near "select": syntax error

At line 5:

Select cName

from College S1"

This is the error am getting. Please help. AM completely new to SQL and it is all confusing.

Link to post
Share on other sites
  • 5 weeks later...

Hello, @charuswapna

Please try this query ,To Any and All keywords

Syntax of Any:

 

SELECT column-names

FROM table-name

WHERE column-name operator ANY

(SELECT column-name

FROM table-name

WHERE condition)

 Syntax of All:

SELECT column-names

FROM table-name

WHERE column-name operator ALL

(SELECT column-name

FROM table-name

WHERE condition)

I hope this query will be useful.

Thank you.

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.

Guest
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.

Loading...
×
×
  • Create New...