Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
需要计算一个表中通过(name.sample)连接到第二个表的行数,其中在第二个表中(name.sample)是在某个日期之前(或之后)创建的。
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'