- Datagration Knowledge Base
- P#
- Additional Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Neighborhood Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- DCA Functions
-
Packages
RefTableKey()
Returns the key for specified exact, interpolated or extremum value of the specified reference table for specified entity and specified time stamp option for specified value column.
Syntax
RefTableKey(
refTable as a string,
valueOrExtremum as a string,
UnitName as a string,
ColumnName as a string,
UnitName as a string,
entityName as a string,
StampOption as a string)
Examples
RefTableKey("reference table", "33.3", "Pa", "RefValue", "m", "Well L", "Current")
RefTableKey("reference table", "Max", "Pa", "RefValue", "m", "Well L", "Last")
RefTableKey("reference table", "Min", "Pa", "RefValue", "m", "Well K", "None")
Examples
RefTableKey("reference table", "33.3", "Pa", "RefValue", "m", "Well K", #04/25/2007#)
RefTableKey("reference table", "Min", "Pa", "RefValue", "m", "Well K", #04/25/2007#)