如何从DolphinDB数据库SQL查询中的小表中提取信息

问题描述 投票:1回答:1

我想执行以下操作:select * from t1 where y > (select y from t2 where x=t1.x)。具体来说,对于t1中的每一行,选择y值高于t2中该行的y值且x值与t1中的行相同的行。没有在不合并t1和t2的情况下在DolphinDB中执行此操作的方法?

dolphindb
1个回答
1
投票
d = dict(t2.x, t2.y)
select * from t1 where y > d[x]
© www.soinside.com 2019 - 2024. All rights reserved.