Can someone please post a sample SQL command that will purge extreme values from a datapoint, or purge values within a certain time range?
I realize that I can set a discard low/high limit, but that does not help once the data is already logged. I have often found that when adjusting metadata formulas I sometimes wind up with a recent datapoint value that screws up my dataset, and consequently the graph scaling. My other option is the purge function, but that would cause me to lose all history before that point.
It would also be useful to know how to replace point values that meet a certain date or value threshold. This would enable me to, for instance, change the scaling of prerecorded datapoints. e.g. to replace a Fahrenheit temperature dataset history with a Celsius dataset, or replace amperes with milliamperes.
Thanks