Name Value AnotherColumn
-----------
Pump 1 8000.0 Something1
Pump 1 10000.0 Something2
Pump 1 10000.0 Something3
Pump 2 3043 Something4
Pump 2 4594 Something5
Pump 2 6165 Something6
Run Code Online (Sandbox Code Playgroud)
我的表看起来像这样.我想知道如何为每个泵选择最大值.
select a.name, value from out_pumptable as a,
(select name, max(value) as value from out_pumptable where group by posnumber)g where and g.value = value
Run Code Online (Sandbox Code Playgroud)
这段代码完成了这项工作,但我得到了Pump 1的两个条目,因为它有两个具有相同值的条目.
我有两张桌子
表A:
ID
1
2
3
4
Run Code Online (Sandbox Code Playgroud)
表B:
ID
1
2
3
Run Code Online (Sandbox Code Playgroud)
我有两个要求:
我正在使用SQL Server 2000.
是否可以使用VBA来检测计算机上使用的十进制符号?
我有一个宏脚本,它将条件格式添加到Excel工作表.问题是目标计算机可能使用两个小数符号.所以我想让脚本适用于所有计算机
代码看起来像这样
With range("D" & row)
.FormatConditions.Delete
.FormatConditions.Add Type:=xlCellValue, Operator:=xlNotBetween, Formula1:="=1,01*$C$" & row, Formula2:="=0,99*$C$" & row
.FormatConditions(1).Font.ColorIndex = 3
End With
Run Code Online (Sandbox Code Playgroud) 是否可以使用Inno设置检索My Documents文件夹的路径?
我试图通过注册表检索路径
RegQueryStringValue(HKCU, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders', 'Personal', path);
Run Code Online (Sandbox Code Playgroud)
但它返回:%USERPROFILE%\ Mina dokument.当我尝试将其用作安装路径时,它无法正常工作.