討論串[問題] SAS中使用SQL與MERGE合併資料
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者liton (歐吉桑留學生)時間12年前 (2011/11/15 17:52), 編輯資訊
1
0
0
內容預覽:
想請問一下SAS中SQL和MERGE合併的產出結果. 假設有兩個原始DATASET:A、B. Dataset A Dataset B. Common Column_A Common Column_B. M 1 M 1. M 2 M 2. 我想用MERGE PROCESS合併成以下結果:. Commo
(還有261個字)

推噓3(3推 0噓 0→)留言3則,0人參與, 最新作者KnightX (........)時間12年前 (2011/11/16 21:46), 編輯資訊
0
0
0
內容預覽:
如同前面推文 A 大給了 point 的提示,. 以下這樣寫應該可以達到多對多合併的結果:. data B_idx;. keep Common B_from B_to;. retain B_from;. set B (keep=Common);. by Common;. if first.Commo
(還有203個字)

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者wasabee (wasabee)時間12年前 (2011/12/05 00:10), 編輯資訊
0
0
0
內容預覽:
幫忙想一下:. data AB (drop=common_);. set A;. do i = 1 to nobs;. set b (rename=(common=common_)) nobs=nobs point=i;. if common=common_ then output;. end;.
首頁
上一頁
1
下一頁
尾頁