答案 0 :(得分:1)
您可以使用相关子查询:
select t.*
from t
where t.total_sales = (select max(t2.total_sales)
from t t2
where t2.shop_title = t.shop_title
);
答案 1 :(得分:1)
您可以在子查询上使用内部联接以获取最大销售额
private void Form1_Load(object sender, EventArgs e)
{
// Add image (this will call imagesTabControl.TabPages.Insert(selectedTabIndex + 1, tabPage))
// This must be done on Load event because Insert requires
// the window handle, which is not ready in the constructor
addImage(@"path_to_image.png");
}