我在 hive 有一张桌子table1
。我正在使用 impala 从表中获取数据
table1
------
name, amount
表的值在哪里
test1, 10
test1, 15
test1, 30
test2, 30
test2, 40
test2, 50
test3, 30
test3, 40
test3, 50
现在我必须从 table1 中获取数据,这样它就可以为 all 获取数据name (test1, test2, test3)
but gives only top 2 records based on amount for each name
。
Can it possible in IMPALa or even in MYSQL?
提前致谢