我正在尝试执行这样的查询:
SELECT MAX(counter), MIN(counter) ,
my_date IN (SELECT my_date FROM my_table WHERE counter = MAX(counter) ) AS max_Date ,
my_date IN (SELECT my_date FROM my_table WHERE counter = MIN(counter) ) AS min_Date
FROM my_table;
它给了我“无效使用组功能”错误。我想要做的是找到最大计数器的日期,然后找到最小计数器的日期。任何帮助!真的很感激..谢谢。