Convert decimal value to top 10

后端 未结 3 1952
执笔经年
执笔经年 2021-01-27 07:45

I recived some great help earlier today but it was more difficult when I should implement it in my query than I thought. My real query includes several left joins.

I wa

3条回答
  •  梦毁少年i
    2021-01-27 08:20

    First

    SELECT MIN(timer.t3m) AS MinT3M, MAX(timer.t3m) AS MaxT3M,
      MIN(timer.t1g) AS MinT1G, MAX(timer.t1g) AS MaxT1G
      FROM round INNER JOIN timer ON round.id = timer.round_id
      WHERE round.round_date = '2013-03-22' 
        AND round.gameform = 'V65'
        AND round.gameform_info = 'V65-1'
        AND round.gameform not like "OSPEC";
    

    Then you can use the calculation which Richard proposed while I was typing this.

    See the SQL Fiddle here which uses your data.

提交回复
热议问题