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



我想做以下几件事: select * from t1 where y > (select y from t2 where x=t1.x) .具体而言,对于 t1 中的每一行,选择 y 值高于 t2 中行的 y 值的行,其 x 值与 t1 中的行相同。有没有办法在不合并 t1 和 t2 的情况下在 DolphinDB 中做到这一点?

d = dict(t2.x, t2.y)
select * from t1 where y > d[x]

最新更新