I think this one will be a challenge even for the experts out there.i have a simple table (see image - top half)Script for recreating table is below.What I'd like to do is a kind of cross tab where the activities for each user appear under each day and in the top row for each day (rather than having lots of gaps as in the normal cross tab query where it has one row for reference.Hope this makes sense.create table T ( ondate datetime , userid varchar(10) null , Appt_Ref varchar(30) null );insert into T values ('2010-12-13 00:00:00:000' ,'IAIN','Go to Shops' );insert into T values ('2010-12-13 00:00:00:000' ,'ROB','Wash car' );insert into T values ('2010-12-13 00:00:00:000' ,'IAIN','Buy Stamps' );insert into T values ('2010-12-14 00:00:00:000' ,'IAIN','Clean Windows' );insert into T values ('2010-12-14 00:00:00:000' ,'IAIN','Fix Shed Door' );insert into T values ('2010-12-14 00:00:00:000' ,'ROB','Re-install Windows' );insert into T values ('2010-12-15 00:00:00:000' ,'IAIN','Write letter' );insert into T values ('2010-12-16 00:00:00:000' ,'IAIN','Visit Grandma' );insert into T values ('2010-12-17 00:00:00:000' ,'IAIN','Marinade lamb' );insert into T values ('2010-12-17 00:00:00:000' ,'IAIN','Buy tickets for x' );insert into T values ('2010-12-17 00:00:00:000' ,'IAIN','Make Xmas Cards' );insert into T values ('2010-12-17 00:00:00:000' ,'ROB','Watch Movie' );insert into T values ('2010-12-17 00:00:00:000' ,'ROB','Order new coat' );select * from t
