回答編集履歴
3
修正
    
        answer	
    CHANGED
    
    | @@ -1,5 +1,6 @@ | |
| 1 1 | 
             
            havingではありませんが
         | 
| 2 2 | 
             
            mysqlの場合groupキー以外の項目(集合関数以外)は、どれを持って来るか保障されていないのでは
         | 
| 3 | 
            +
            またHAVING区の条件は、グループで成立するので `修正`=max(`修正`)は2件になります。
         | 
| 3 4 | 
             
            ```sql
         | 
| 4 5 | 
             
            select * from table where (`id`,`日付`,`修正`) in (
         | 
| 5 6 | 
             
              select `id`,`日付`,max(`修正`) from table where `id`=1111 group by `日付`);
         | 
2
追加
    
        answer	
    CHANGED
    
    | @@ -1,4 +1,5 @@ | |
| 1 1 | 
             
            havingではありませんが
         | 
| 2 | 
            +
            mysqlの場合groupキー以外の項目(集合関数以外)は、どれを持って来るか保障されていないのでは
         | 
| 2 3 | 
             
            ```sql
         | 
| 3 4 | 
             
            select * from table where (`id`,`日付`,`修正`) in (
         | 
| 4 5 | 
             
              select `id`,`日付`,max(`修正`) from table where `id`=1111 group by `日付`);
         | 
1
修正
    
        answer	
    CHANGED
    
    | @@ -1,3 +1,4 @@ | |
| 1 | 
            +
            havingではありませんが
         | 
| 1 2 | 
             
            ```sql
         | 
| 2 3 | 
             
            select * from table where (`id`,`日付`,`修正`) in (
         | 
| 3 4 | 
             
              select `id`,`日付`,max(`修正`) from table where `id`=1111 group by `日付`);
         | 
