I have a text
column in my database table which contains values like
A/B
A/B/C
A/B/C/D
A/B/C/D/E
Now, I want to select only those rows where this column value contains maximum three occurrences of '/'
.
For clarity - expected output should be:
A/B
A/B/C
A/B/C/D
Can anyone help me with such a query?