select longtition,latitude, (download_bps/1024/1024) as download_bps_1,(traffic_bytes/1024/1024) as traffic_bytes_1 from wwx1249869.pr01_sulvjingzhengfenxi_no0711__320389 where radio_network_generation='4G' and download_bps in appx_median(download_bps/1024/1024) and (traffic_bytes/1024/1024)>1000 and traffic_direction ='Uplink'改为正确写法
时间: 2024-04-11 16:28:28 浏览: 134
以下是修正后的 SQL 查询语句:
```sql
SELECT longtition, latitude, (download_bps/1024/1024) AS download_bps_1, (traffic_bytes/1024/1024) AS traffic_bytes_1
FROM wwx1249869.pr01_sulvjingzhengfenxi_no0711__320389
WHERE radio_network_generation = '4G'
AND download_bps IN (SELECT appx_median(download_bps/1024/1024) FROM wwx1249869.pr01_sulvjingzhengfenxi_no0711__320389)
AND (traffic_bytes/1024/1024) > 1000
AND traffic_direction = 'Uplink'
```
请注意,在修改后的查询语句中,将 `download_bps in appx_median(download_bps/1024/1024)` 改为 `download_bps IN (SELECT appx_median(download_bps/1024/1024) FROM wwx1249869.pr01_sulvjingzhengfenxi_no0711__320389)`,以正确使用子查询来检索 `appx_median(download_bps/1024/1024)` 的结果。
阅读全文