SQL Language (MOSC)

MOSC Banner

Comparison operator ALL

edited Jul 3, 2012 5:02AM in SQL Language (MOSC) 10 commentsAnswered
What's the select statement to pull a list of employees who have kids named "Jack" AND "James".
Some examples:
Employee A with one kid named "Jack"=not qualified
Employee B with four kids named "Jack", "Jane", "Jim" and "James"=qualified
Employee C with three kids named "John", "James" and "Jill" =not qualified
Comparison Operator IN wouldn't work because it would pull B and C also while ALL would fetch none.
Thanks for your help,




Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center