这是我earlier question的后续行动,现在分析师澄清要求后需求再次发生变化
我需要能够识别第2行,其中import SpriteKit
class GameScene: SKScene,UIScrollViewDelegate {
override func didMoveToView(view: SKView) {
/* Setup your scene here */
let frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)
let scrollView = UIScrollView(frame: frame)
scrollView.backgroundColor = UIColor.redColor()
scrollView.contentSize = CGSizeMake(self.frame.size.width * 4, self.frame.size.height)
scrollView.pagingEnabled = true
let button = UIButton(type: .System)
button.frame = CGRectMake(20, 10, 300, 40)
button.setTitle("Something", forState: .Normal)
button.addTarget(self, action: "something", forControlEvents: .TouchUpInside)
scrollView.addSubview(button)
self.view?.addSubview(scrollView)
}
func something() {
print("OK")
}
}
列已达到或超过23周,因此我可以返回正确的TotalWeeks
值。
获取该数据集我正在使用这样的查询:
ToDate
但我怎么能确定 TotalWeeks 达到我要检查的价值的记录 - 23周(不到28)或大于或等于28周?
感谢
答案 0 :(得分:0)
我认为您可以使用Having
子句
像
这样的东西Having (sum(weeks) >= 23 and SUM(weeks) < 28) or sum(weeks) >= 28