2011-10-06 42 views
0

需要计算一个表中通过(name.sample)连接到第二个表的行数,其中第二个表中的(name.sample)是在(或之后) )某个日期。通过另一个表中的条件对行进行计数

+0

宾果游戏!非常感谢你。什么是论坛...........没有麻烦,只是答案.... – JcR49

回答

1
select count(*) from table1 t1 
inner join table2 t2 on t1.my_foreign_key_column = t2.my_primary_key_column 
where t2.creation_date >= 'my_date_literal' 
+0

宾果!非常感谢你。什么是论坛...........没有麻烦,只是回答.... – JcR49

相关问题