質問編集履歴
4
sqlを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,7 +98,9 @@
|
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
+
```
|
102
|
+
|
101
|
-
`
|
103
|
+
`試したsql2`
|
102
104
|
|
103
105
|
SELECT
|
104
106
|
|
3
sqlを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -91,3 +91,33 @@
|
|
91
91
|
テスト用sqlを記述したため間違いがあると思われますが
|
92
92
|
|
93
93
|
上のテーブル内容などを見てご理解していただければと思います。
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
```試したsql2
|
102
|
+
|
103
|
+
SELECT
|
104
|
+
|
105
|
+
T1.ID,
|
106
|
+
|
107
|
+
T1.DATE,
|
108
|
+
|
109
|
+
LISTAGG(VAL,',')WITHIN GROUP(order by VAL_ID) List_VAL
|
110
|
+
|
111
|
+
FROM T1
|
112
|
+
|
113
|
+
WHERE
|
114
|
+
|
115
|
+
(T1.VAL_ID = '10' OR T1.VAL_ID = '20' OR T1.VAL_ID = '30')
|
116
|
+
|
117
|
+
GROUP BY
|
118
|
+
|
119
|
+
T1.ID , T1.DATE
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```
|
2
タグを追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
sql
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,7 +74,11 @@
|
|
74
74
|
|
75
75
|
) AS VAL30
|
76
76
|
|
77
|
+
FROM T1
|
78
|
+
|
79
|
+
WHERE
|
80
|
+
|
77
|
-
|
81
|
+
T1.VAL_ID = '10'
|
78
82
|
|
79
83
|
```
|
80
84
|
|