You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
678 B
14 lines
678 B
select * from pit_report_period_at_date("is_common_ori", 2022.07.12, [2019.12.31], 0) order by code
|
|
/*
|
|
source_table = loadTable("dfs://pit_stock_ts", "is_common_adj");
|
|
m_nDate = [2021.12.12]
|
|
report_period = [2019.12.31]
|
|
|
|
query_table = table(report_period, m_nDate)
|
|
query_table_exp = select * from cj(query_table, select code from source_table where partition(code, 0) group by code map)
|
|
// query_table_exp
|
|
|
|
source_table_part = select source_table.* from ej(source_table, query_table_exp, `code`report_period) where partition(code, 0)
|
|
|
|
select top 100 * from aj(query_table_exp, source_table_part, `code`report_period`m_nDate, `code`report_period`appear_at_date) order by code
|
|
*/ |