Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. create table taTest(
  2. column1 varchar(50),
  3. column2 varchar(50)
  4. )
  5.  
  6. select distinct(column1),column2 from taTest;
  7.  
  8. desired output(for each query result) : column1value(column2value)
  9.  
  10. select wm_concat(distinct(column1)||'('||column2||')') as result from taTest;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement