sql - One row with 2 same name columns -


i wish have resultset 2 columns of data coming same column.

select cust,date,data  cust_a1 ai_code between '17' , '19'; 

this return multiple rows

1234567 | 04-04-2011 | special offer 1234567 | 04-04-2011 | cheep offer 1345678 | 04-04-2011 | friday offer 1345678 | 04-04-2011 | special offer 

i shape this:

1234567 | 04-04-2011 | special offer | cheep offer 1345678 | 04-04-2011 | special offer | friday offer 

how can done?

this known pivot


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -