I have a table X that has column called version that has 4-5 values in it example 1,2,3,4,5
If the column value is 1 or 3 then I am good, else it’s and error
question
what is the query so that I want output like this
Total # of values | Total good i.e. value is (1,3) | total failed i.e value not in (1,3)
Can someone please help me with the query
You can try this:
SQL Fiddle DEMO
Based on your comment, if you need the percentage you would use this: