Conrad,
your question have two parts
a) For queries like
WHERE a = (select ...)
if subquery returns more than one row, Caché will compare left part with first value of subquery.
b) If several people are tied for the minimum age, then following query prints all of them
SELECT Age,Name,home_state
FROM Sample.Person p1
WHERE age = (
SELECT min(age)
FROM Sample.Person p2
WHERE p1.home_state = p2.home_state)
- Log in to post comments
