Hello!
I have data points that, among others, have an element of type dyn_string. Let's call it "colors".
Let's imagine that one data point has "colors": [green, red, blue]. The other has [orange, purple]. The third one has [red, white, black, yellow].
I want to use dpQuery() function. What SQL statement should I use to select data points that have "red" in their "colors" element?
How can I query all data points that have a specific value in their dyn_string element?
- i.mak
- Posts:18
- Joined: Mon Mar 27, 2017 3:00 pm
How can I query all data points that have a specific value in their dyn_string element?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: How can I query all data points that have a specific value in their dyn_string element?
Querying data with a specific value in the original value is possible with the following statement.
The example is querying for datapoint elements starting with "ExaDP_**" and online values containing "yellow".
SELECT '_online.._value' FROM 'ExaDP_**' WHERE '_online.._value' LIKE "*yellow*"
Best Regards
Leopold Knipp
Senior Support Specialist
The example is querying for datapoint elements starting with "ExaDP_**" and online values containing "yellow".
SELECT '_online.._value' FROM 'ExaDP_**' WHERE '_online.._value' LIKE "*yellow*"
Best Regards
Leopold Knipp
Senior Support Specialist
- i.mak
- Posts:18
- Joined: Mon Mar 27, 2017 3:00 pm
Re: How can I query all data points that have a specific value in their dyn_string element?
Hello, Leopold!
Thank you very much!
Thank you very much!