complex MySQL query wrong results

前端 未结 2 1009
青春惊慌失措
青春惊慌失措 2021-01-13 17:01

I am trying to build complex mysql query but its returning wrong results...

SELECT
  b.name  AS batch_name,
  b.id    AS batch_id,

  COUNT(DISTINCT s.id)
           


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-13 17:30

    I have got the solution, i was joining lots of queries together and that's by some results are doubling. thanks.

提交回复
热议问题