标签: sql teradata
我有这个基本的联接,在Teradata中不起作用。我分别运行各个表,并且工作正常。所以我认为加入是问题。
( select age, sex, sum(members) as Membership from tablem group by 1,2 ) m left join ( select age, sex from tablec ) c on m.age = c.age and m.sex = c.sex