SELECT sAlarmPoint, sAlarmEquipment, sAlarmZone, sAlarmAsc, sType, COUNT(*) AS 频次, SUM(持续时间) AS 累计持续时间 FROM dbo.ViewAlarmDesLog GROUP BY sAlarmPoint, sAlarmEquipment, sAlarmZone, sType, sAlarmAsc 主要在count那里,我在sql server 里有一条通过count后比如说频次是2,但是在帆软ds里那一项是1 这是什么原因呢? |
0
|
|