Guest User

Untitled

a guest
Sep 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. ["165","184","192","209","242"]
  2.  
  3. SELECT
  4. curso1,
  5. CASE WHEN COALESCE(curso1, '"')='"' THEN 0
  6. ELSE
  7. length(curso1)-length(replace(curso1, ',', ''))+
  8. (length(curso1)-length(replace(curso1, ' and ', ''))) DIV 5
  9. +1
  10. END
  11. FROM
  12. suaTabela
Add Comment
Please, Sign In to add comment