select b.d, count (1) The from test1 a, (select distinct c, d from test2) b Where a.=biggest And a. d. in 20160101201010 (2) Group by b.d.
CodePudding user response:
Select count (*), xuehao (b), xingming (d), a. anji (a) The from test1. A, b test2 Where a. anji=b.b anji And a.x uehao=b.x uehao And a.x uehao between 1100 and 1200 The group by xuehao, (b), xingming (d), a. anji (a)
CodePudding user response:
The select b.d, count (1) The from test1 a, (select c, d from test2) b Where a.=biggest And a. d. in (' 20160101 ', '20160102') Group by b.d.