Using the same parameter twice

前端 未结 1 1252
深忆病人
深忆病人 2021-01-27 09:04

I have the following SQL query:

SELECT SUM(OpenInterest) *(SELECT DISTINCT Future
                           FROM MTM
                           WHERE Expiry = [         


        
相关标签:
1条回答
  • 2021-01-27 09:28

    I'm sure there is a proper way to do this but in the end I just made a UDF on the DB which allows me to use only 4 parameters and also certain T-SQL commands and procedures that otherwise wouldn't work. But if someone knows of a suitable alternative, please post it!

    0 讨论(0)
提交回复
热议问题