请将此Excel公式转换为Access或SQL查询 [英] PleaseTranslate this Excel formula to an Access or SQL query

查看:127
本文介绍了请将此Excel公式转换为Access或SQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个在Excel中使用的公式,它在一行中找到最高值并返回具有该值的列的名称。



I have this formula that I use in Excel that finds the highest value in a row and returns the name of the column having that value.

我需要在Access 365中执行此操作。 有人可以将此公式翻译成Access或SQL查询吗?                    ;              
= INDEX(B1:F1,0,MATCH(MAX( B2:F2 ),B2:F2,0))

I need to do this in Access 365.  Can someone please translate this formula to an Access or SQL query?                                  =INDEX(B1:F1,0,MATCH(MAX(B2:F2),B2:F2,0))

推荐答案

不理解数据库设计是不可能的。你可以在关系屏幕上发布相关的表格。

Impossible to say without understanding the database design. Can you post the Relationships screen with the relevant table(s).

连续的最高值

In关系数据库它可能是列中的最高值。

highest value in a row
In a relational database it would likely be the highest value in a column.

无论如何,您可能需要DMax和DLookup的组合。请参阅帮助文件。

Regardless, you probably need a combination of DMax and DLookup. See help file.


这篇关于请将此Excel公式转换为Access或SQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆