TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
mysql> SELECT col_4 FROM `ta28a9719` WHERE `ta28a9719`.`col_4`= 'Eb' GROUP BY `ta28a9719`.`col_5`,`ta28a9719`.`col_4` HAVING `ta28a9719`.`col_4`>='=';
+-------+
| col_4 |
+-------+
| E |
+-------+
1 row in set (0.05 sec)
and
mysql> SELECT col_4 FROM `ta28a9719` WHERE `ta28a9719`.`col_4`= 'Eb' GROUP BY `ta28a9719`.`col_5`,`ta28a9719`.`col_4`;
Empty set (0.01 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
empty
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
v7.6.0-alpha-342-g5883c5ba34-dirty