Hi all,
Using Access 2003
I'm a bit new to Access (told by my employer to 'learn it' last Monday)... anyway lack of any training aside, googling is going well and I'm getting my head round SQL....
I'm completely stumped on the following.....
I have a table as follows (not sure how best to format this)
Name,WorkGroup, Clinic
Mr Smith,Eye Specialist,9943 75
Mr Smith,General,3 24532
Mr Smith,Cataract, 2342532
Mr Jones,Antenatal ,234523
Mr Jones,Obstetric ,245666
Mr Doe,Ilizarov,45 3453
Mr Doe,Flat Feet,4363456
Mr Doe,Osteogenesi s,34564
Mr Doe,General,256 3245
I need this as follows
Name,WorkGroup1 ,Clinic1,Workgr oup2,Clinic2,Wo rkgroup3 etc...
Mr Smith,Eye Specialist,9943 75,General,3245 32,Cataract
Mr Jones,Antenatal ,234523,Obstetr ic,245666
Mr Doe,Ilizarov,45 3453,Flat Feet,4363456,Os teogenesis
All the 'solutions' I have found online fall down on one of the following two areas...
They assume small number of 'Names' (i.e. Smith Jones and Doe are the ONLY employees.... we have more than 270)
They assume a small group of repeated 'Workgroups' (again same problem)
I hope someone is able to help.
I'm basically looking for a bit of SQL code for this. I could do it in Perl quite nicely, but the database needs to be stand alone for distribution purposes.
Very very grateful for any assistance
Robin
Using Access 2003
I'm a bit new to Access (told by my employer to 'learn it' last Monday)... anyway lack of any training aside, googling is going well and I'm getting my head round SQL....
I'm completely stumped on the following.....
I have a table as follows (not sure how best to format this)
Name,WorkGroup, Clinic
Mr Smith,Eye Specialist,9943 75
Mr Smith,General,3 24532
Mr Smith,Cataract, 2342532
Mr Jones,Antenatal ,234523
Mr Jones,Obstetric ,245666
Mr Doe,Ilizarov,45 3453
Mr Doe,Flat Feet,4363456
Mr Doe,Osteogenesi s,34564
Mr Doe,General,256 3245
I need this as follows
Name,WorkGroup1 ,Clinic1,Workgr oup2,Clinic2,Wo rkgroup3 etc...
Mr Smith,Eye Specialist,9943 75,General,3245 32,Cataract
Mr Jones,Antenatal ,234523,Obstetr ic,245666
Mr Doe,Ilizarov,45 3453,Flat Feet,4363456,Os teogenesis
All the 'solutions' I have found online fall down on one of the following two areas...
They assume small number of 'Names' (i.e. Smith Jones and Doe are the ONLY employees.... we have more than 270)
They assume a small group of repeated 'Workgroups' (again same problem)
I hope someone is able to help.
I'm basically looking for a bit of SQL code for this. I could do it in Perl quite nicely, but the database needs to be stand alone for distribution purposes.
Very very grateful for any assistance
Robin
Comment