---------------1------------------
sel
![[啊]](/static/emoticons/u554a.png)
ect * from ORADH where budate BETWEEN 20201001 and 20201031
---------------2-----------------
sel
![[啊]](/static/emoticons/u554a.png)
ect * from ORDERD where billid in (
sel
![[啊]](/static/emoticons/u554a.png)
ect billid from ORADH where allmany>10000)
---------------3-----------------
sel
![[啊]](/static/emoticons/u554a.png)
ect wendor,max(allmany) allmany_max from ORADH
GROUP BY wendor
---------------4-----------------
sel
![[啊]](/static/emoticons/u554a.png)
ect top 10 Opertor,sum(allmany) allmany_sum from ORADH
GROUP BY Opertor order by allmany_sum desc
---------------5-----------------
sel
![[啊]](/static/emoticons/u554a.png)
ect a.wendor,max(b.pric) pric_max from ORADH a,ORDERD b
where a.billid=b.billid
GROUP BY a.wendor