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) によって 2 番目のテーブルに接続する 1 つのテーブルの行数をカウントする必要があります。2 番目のテーブルでは、(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'