回答編集履歴

2

推敲

2020/03/26 02:32

投稿

sazi
sazi

スコア25327

test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  , case when ID2=1 then
24
24
 
25
- , (select 住所 from K3_Sheet1 ID in (t1.ID, t1.ID+1, t1.ID+2) for xml path(''))
25
+ (select 住所 from K3_Sheet1 ID in (t1.ID, t1.ID+1, t1.ID+2) for xml path(''))
26
26
 
27
27
  end as 住所
28
28
 

1

推敲

2020/03/26 02:32

投稿

sazi
sazi

スコア25327

test CHANGED
@@ -14,11 +14,11 @@
14
14
 
15
15
  select ROW_NUMBER()OVER(ORDER BY ID) as ID
16
16
 
17
- , case when ID2=1 then end as 姓
17
+ , 姓
18
18
 
19
- , case when ID2=1 then end as 名
19
+ , 名
20
20
 
21
- , case when ID2=1 then 性別 end as 性別
21
+ , 性別
22
22
 
23
23
  , case when ID2=1 then
24
24
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  end as 住所
28
28
 
29
- , case when ID2=1 then 年齢 end as 年齢
29
+ , 年齢
30
30
 
31
31
  , ID2
32
32