I have the following table with two fields:
create table test_t
(
cola varchar(10),
coldate date
);
Inserting some records:
insert into test_t values('A','1-1-2010'),
                         ('A','2-1-2010'),
                         ('A','4-1-2010'),
                         ('B','6-1-2010'),
                         ('B','8-1-2010'),
                         ('C','10-1-2010'),
                         ('D','11-1-2010'); 
Note: Now I want to show the cola values which are belongs to 2 to 3 days. And want 
to show that dates day into comma separated column as shown below in the expected
ouptput.
Expected Output:
cola    Dates_Day
------------------
A       1,2,4
B       6,8
 
     
     
    