My problem is this
1 - I start with the internal id of 1
2 - I need ot find the only container in table 1 with 1 record
Expected output = 102
My attempts have been
select
id, container
from
table 1
where
substr(container,1,9) in
(
select substr(container,1,9)
from table 1
where ID in (1)
) and
having count(container) = 1
group by id, container -- I really don't want to group here, but have to and this screws up the query
order by container
Bookmarks