Hive 在配置单元SQL中使用多个子选择查询

Hive 在配置单元SQL中使用多个子选择查询,hive,Hive,我在配置单元中有以下查询,由于配置单元不允许超过1个子选择,我不确定如何解决这个问题。我查看了现有的帖子,但没有与之接近的内容。在这个查询中,我有更多的子选择用于更多联接。非常感谢您的帮助。多谢各位 select * from table_a a inner join table_b on a.id = b.id) where a.timestamp in (select max(c.timestamp) from table_a c

我在配置单元中有以下查询,由于配置单元不允许超过1个子选择,我不确定如何解决这个问题。我查看了现有的帖子,但没有与之接近的内容。在这个查询中,我有更多的子选择用于更多联接。非常感谢您的帮助。多谢各位

    select * from table_a a inner join table_b on a.id = b.id)
     where a.timestamp in (select max(c.timestamp) from table_a c 
                        where c.id = a.id)
      and b.timestamp in (select max(d.timestamp) from table_b dateofbirth  
                         where d.id = b.id);