私は3つのテーブルを持っています
最初のテーブルには、ID First_date、Birthday、Sex が含まれます
ID First_date Birthday Sex
1 19970104 19940921 M
2 19970107 19561224 F
3 20061228 19320426 M
4 20070231 19780825 F
5 20071231 19421206 F
2 番目のテーブルには ID event_type event_time が含まれます
ID event_type event_time
2 1 19990211
4 1 20071226
3 番目のテーブルには ID event_type event_time が含まれます
ID event_type event_time
1 2 19990219
3 2 20070228
そして、テーブルを統合したい
ID First_date Birthday Sex event_type event_time
1 19970104 19940921 M 2 19990219
2 19970107 19561224 F 1 19990211
3 20061228 19320426 M 2 20070228
4 20070231 19780825 F 1 20071226
5 20071231 19421206 F 0 NA
id5 は 2 と 3 のテーブルになかったので、event_type は 0 をコーディングします