I need to create a query in an sqlite database using DB Browser. The columns are: state, measure_id, measure_name, score. All of the data has been input as strings. I can cast the score strings as decimal, however the problem is that some of the values for the score column are numeric and some are actual string values (such as "high" etc). I need to ignore the REAL string values in my output. Also, I need to calculate the standard deviation (as well as min,max,avg) for each measure_id.
How can I ignore the real string values and calculate the standard deviation?
Here is some sample data:
sample 1: AL, ID1, Ident, 52
sample 2: TX, ID2, Foo, High
sample 3: MI, ID3, Bar, 21
(I want to select only sample 1 and 3, and then cast the strings as int and calculate stdev)