質問編集履歴
1
コードを更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
let
|
13
|
-
ソース = Odbc.Query("dsn=
|
13
|
+
ソース = Odbc.Query("dsn=db", "SELECT COALESCE(株式残高.[Base Market Value],0)+ COALESCE(未収配当,0) AS 時価総額, *#(lf)FROM ((SELECT [Security ID] from t1 where [Accounting Date]='2025/02/28' and [Entity Number]='9999' and [Investment Type Code]='EQ'Union select [Security ID] from t2 where [Accounting Date]='2025/02/28' and [Entity Number]='9999') AS master LEFT JOIN (SELECT * FROM t1 WHERE [Accounting Date]='2025/02/28' and [Entity Number]='9999' and [Investment Type Code]='EQ') AS 株式残高 ON 株式残高.[Security ID] = master.[Security ID]) LEFT JOIN (SELECT [Accounting Date], [Entity Number], [Security ID], Sum([Base Market Value Receivable]) AS 未収配当 FROM t2 WHERE [Accounting Date]='2025/02/28' and [Entity Number]='9999' GROUP BY [Accounting Date], [Entity Number], [Security ID]) AS 未収 ON 未収.[Security ID] = master.[Security ID];#(lf)")
|
14
14
|
in
|
15
15
|
ソース
|
16
16
|
```
|