2
我有表,每天发布数据。每个字符串都有字段,名称以星期几为单位。我想要得到所有的字符串,在所有的星期五中,这个字符串的值最大,为from_sale
。这样的事情:选择具有最大值的字符串
select *
from deliverability.test_repo
where week_day = 'Friday'
and from_sale having max(from_sale)
但它只返回一个字符串。我怎样才能得到所有的字符串?