Using 'in' in Join
        Posted  
        
            by Ruslan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ruslan
        
        
        
        Published on 2010-05-04T13:15:20Z
        Indexed on 
            2010/05/04
            13:18 UTC
        
        
        Read the original article
        Hit count: 335
        
i have two selects a & b and i join them like:
select * from 
(
   select n.id_b || ',' || s.id_b ids, n.name, s.surname 
   from names n, 
        surnames s where n.id_a = s.id_a
) a 
left join
(
    select sn.id, sn.second_name
) b on b.id in (a.ids)
in this case join doesn't work :( The problem is in b.id in (a.ids). But why if it looks like 12 in (12,24) and no result :(
© Stack Overflow or respective owner