阅读背景:

关于不同列的Where子句的SQL Case

来源:互联网 

I've been trying to get a query that, based on a given condition (if isCurrent = 1 or not) should give me just one value/row based on the CurriculumId /which will be a parameter on a stored procedure). This value should, in case isCurrent = 1 return to me the item with the most current StartDate but if isCurrent = 0 then it should give me the one with the most current EndDate.I've been trying to get a query that, based on




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: