|
3#
楼主 |
发表于 2013-4-27 17:57:22
|
只看该作者
todaynew 发表于 2013-4-27 17:27
说明两个被联合的select一样
SELECT 海门语音指标.起始时间, Sum([海门语音指标]![CM30:SDCCH掉话次数(无)])/Sum([海门语音指标]![K3003:SDCCH占用成功次数(无)]) AS SDCCH掉话率, Sum([CM33:业务信道掉话次数(无)])/(Sum([K3023:TCH占用成功次数(信令信道)(无)])+Sum([K3013A:TCH呼叫占用成功次数(业务信道)(无)])+Sum([K3013B:TCH切换占用成功次数(业务信道)(无)])) AS [TCH掉话率(含切换)], Sum([海门语音指标]![CM33:业务信道掉话次数(无)])/(Sum([海门语音指标]![K3023:TCH占用成功次数(信令信道)(无)])+Sum([海门语音指标]![K3013A:TCH呼叫占用成功次数(业务信道)(无)])) AS [TCH掉话率(不含切换)], (Sum([海门语音指标]![K3021:TCH占用遇全忙次数(信令信道)(无)])+Sum([海门语音指标]![K3011A:TCH呼叫占用遇全忙次数(业务信道)(无)]))/(Sum([海门语音指标]![K3020:TCH占用请求次数(信令信道)(无)])+Sum([海门语音指标]![K3010A:TCH呼叫占用请求次数(业务信道)(无)])) AS [TCH拥塞率(遇全忙)], (Sum([海门语音指标]![K3021:TCH占用遇全忙次数(信令信道)(无)])+Sum([海门语音指标]![K3011A:TCH呼叫占用遇全忙次数(业务信道)(无)])+Sum([海门语音指标]![K3011B:TCH切换占用遇全忙次数(业务信道)(无)]))/(Sum([海门语音指标]![K3020:TCH占用请求次数(信令信道)(无)])+Sum([海门语音指标]![K3010A:TCH呼叫占用请求次数(业务信道)(无)])+Sum([海门语音指标]![K3010B:TCH切换占用请求次数(业务信道)(无)])) AS [TCH拥塞率(含切换)], (Sum([海门语音指标]![CH313:BSC内出小区切换成功次数(无)])+Sum([海门语音指标]![CH333:BSC间出小区切换成功次数(无)]))/(Sum([海门语音指标]![CH330:BSC间出小区切换请求次数(无)])+Sum([海门语音指标]![CH310:BSC内出小区切换请求次数(无)])) AS 切换成功率, (1-Sum([海门语音指标]![K3001:SDCCH占用遇全忙次数(无)])/Sum([海门语音指标]![K3000:SDCCH占用请求次数(无)]))*(1-Sum([海门语音指标]![K3011A:TCH呼叫占用遇全忙次数(业务信道)(无)])/Sum([海门语音指标]![K3010A:TCH呼叫占用请求次数(业务信道)(无)])) AS 系统接通率, Sum([海门语音指标]![K3014:TCH话务量(爱尔兰)])/2 AS 话务量, Sum([海门语音指标]![K3034:半速率话务量(爱尔兰)])/2 AS [半速率话务量(爱尔兰)], Sum([海门语音指标]![K3014:TCH话务量(爱尔兰)])/Sum([海门语音指标]![K3015:TCH可用数目(无)]) AS [每线话务量(爱尔兰)], (Sum([海门语音指标]![CH313:BSC内出小区切换成功次数(无)])+Sum([海门语音指标]![CH333:BSC间出小区切换成功次数(无)]))/(Sum([海门语音指标]![CH311:BSC内出小区切换命令次数(无)])+Sum([海门语音指标]![CH331:BSC间出小区切换命令次数(无)])) AS 无线切换成功率, (Sum([海门数据指标]![A9002:上行GPRS TBF建立成功次数(无)])+Sum([海门数据指标]![A9202:上行EGPRS TBF建立成功次数(无)]))/(Sum([海门数据指标]![A9001:上行GPRS TBF建立尝试次数(无)])+Sum([海门数据指标]![A9201:上行EGPRS TBF建立尝试次数(无)])) AS 上行TBF建立成功率, (Sum([海门数据指标]![A9302:下行EGPRS TBF建立成功次数(无)])+Sum([海门数据指标]![A9102:下行GPRS TBF建立成功次数(无)]))/(Sum([海门数据指标]![A9301:下行EGPRS TBF建立尝试次数(无)])+Sum([海门数据指标]![A9101:下行GPRS TBF建立尝试次数(无)])) AS 下行TBF建立成功率, Sum([海门数据指标]![TL9023:上行GPRS RLC层吞吐量(千字节)]+[海门数据指标]![TL9237:上行EGPRS RLC层吞吐量(千字节)])/1024/2 AS 上行数据流量, Sum([海门数据指标]![TL9123:下行GPRS RLC层吞吐量(千字节)]+[海门数据指标]![TL9338:下行EGPRS RLC层吞吐量(千字节)])/1024/2 AS 下行数据流量
FROM 海门数据指标 INNER JOIN 海门语音指标 ON (海门数据指标.GCELL = 海门语音指标.GCELL) AND (海门数据指标.起始时间 = 海门语音指标.起始时间)
GROUP BY 海门语音指标.起始时间;
看看怎么改? |
|