简体   繁体   中英

Select rows where values of one column are equal to each other in powerpivot

I want select a,b,c,d,e,f,g,h,i from a big table"Data" where column"f" values are equal to each other and column"a" value is biggest and column"f" values are not equal to each other.

在此输入图像描述

Use GROUP BY clause.

GROUP BY aggregates records based on column value equality.

For example:

SELECT f, max(a) as a
FROM yourtable
GROUP BY f;

You can use this as a subquery to select records from your table with the result's f and max(a) values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM