## sql
- adx-request 统计
```
* | SELECT DATE_FORMAT(__time__ - __time__ % 1000, 'Y-M-d HH:mm:ss') AS time, adpos_id, count(*) where DATE_FORMAT(__time__ - __time__ % 1000, 'Y-M-d HH:mm:ss') > '2025-12-2 09:46:44' group by time, adpos_id order by time,adpos_id LIMIT  1000
```

- 查询 nbr
```
普通查询
* | SELECT req_id , JSON_EXTRACT_SCALAR(nbr, '$.417.43201') 
where CAST(JSON_EXTRACT_SCALAR(nbr, '$.417.43201') AS INT) > 0

统计广告位下活动的nbr
* | SELECT JSON_EXTRACT_SCALAR(nbr, '$.351.59149') ,count(JSON_EXTRACT_SCALAR(nbr, '$.351.59149'))
where CAST(JSON_EXTRACT_SCALAR(nbr, '$.351.59149') AS INT) > 0 group by JSON_EXTRACT_SCALAR(nbr, '$.351.59149')
```
