By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| @@SQL_MODE |
|---|
| ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
Unknown column 'login_out' in 'having clause'
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | PRIMARY | test | null | ALL | null | null | null | null | 1 | 100.00 | Using where; Using filesort |
| 2 | DEPENDENT SUBQUERY | test | null | ALL | null | null | null | null | 1 | 100.00 | Using where; Using temporary; Using filesort |
Unknown column 't2.login_out' in 'having clause'
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | PRIMARY | t1 | null | ALL | null | null | null | null | 1 | 100.00 | Using where; Using filesort |
| 2 | DEPENDENT SUBQUERY | t2 | null | ALL | null | null | null | null | 1 | 100.00 | Using where; Using temporary; Using filesort |