Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. select val, count(1)
  2. from test_table lateral view explode(array(col1,col2,col3,col4)) t as val
  3. where val is not null
  4. group by val
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement