Last active
January 5, 2020 09:34
-
-
Save gary136/8da1272ba5f989be76709847f66adcdf to your computer and use it in GitHub Desktop.
sql_pseudo.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM | |
( | |
上市公司財務比率 (FROM 損益表) | |
UNION | |
上櫃公司財務比率 (FROM 損益表) | |
) A | |
JOIN | |
( | |
上市公司財務比率 (FROM 資產負債表 / 現金流量表) | |
UNION | |
上櫃公司財務比率 (FROM 資產負債表 / 現金流量表) | |
) B ON A.公司代號=B.公司代號 | |
JOIN | |
( | |
上市公司營業收入 | |
UNION | |
上櫃公司營業收入 | |
) C ON A.公司代號=C.公司代號 | |
JOIN | |
( | |
上市公司財報公布後收盤價 | |
UNION | |
上櫃公司財報公布後收盤價 | |
) D ON A.公司代號=D.公司代號 | |
-- optional | |
JOIN | |
( | |
TEJ 公司基本資料 | |
) E ON A.公司代號=E.公司代號 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment