我的SQL相当生疏。我使用的是SQLServer Express 2014。下面是一个在我的transactions表中输出运行余额的工作查询: SELECT Id, AccountId, TrxDate, Amount, SUM(Amount) FROM AccountTransaction
WHERE AccountId=1 ORDER BY
也有类似的问题,但我的怀疑略有不同:from process a inner join subprocess b on a.id=b.id and a.field=true那么,在使用inner join时,哪个操作最先出现: join条件还是a.field=true条件?因为这两个表非常大,所以我的目标是首先过滤表process,然后只连接使用表subprocess过滤的行。
哪种方法是最好的?