proc sql;
create table temp as
select age,job,household
from old
where relationship=1
;
select old.*,
case
when old.relationship=3 then temp.age
else .
end as ParentAge,
case
when old.relationship=3 then temp.job
else '.'
end as ParentJob
from old,temp
where temp.household=old.household and old.relationship<>1
;[/code:3df62]作者: shiyiming 时间: 2005-4-8 02:51 标题: 怎么看不见回复? 一点击就是广告?衷心谢谢AHUIGE的帮助!