Hello!
I have a table which holds scheduling information about people. The way this table has to be built results in data that looks like this:
Person Monday Tuesday
-------------- ------------- -------------
Mary Fletchall SMR D9 -
Mary Fletchall SMR E10 -
Mary Fletchall SMR E8 -
Mary Fletchall - SMR D9
Mary Fletchall - SMR E15
Mary Fletchall - SMR Y7
(where "-" = null)
I want to select that data into a recordset that looks like this:
Person Monday Tuesday
-------------- ------------- -------------
Mary Fletchall SMR D9 SMR D9
Mary Fletchall SMR E10 SMR E15
Mary Fletchall SMR E8 SMR Y7
I have done this in the past very easily by using SUM(), but that was with integer data. Now that i'm working with Varchar data, i cant figure out how to group these rows to produce this result.
Help!
Thanks!
I have a table which holds scheduling information about people. The way this table has to be built results in data that looks like this:
Person Monday Tuesday
-------------- ------------- -------------
Mary Fletchall SMR D9 -
Mary Fletchall SMR E10 -
Mary Fletchall SMR E8 -
Mary Fletchall - SMR D9
Mary Fletchall - SMR E15
Mary Fletchall - SMR Y7
(where "-" = null)
I want to select that data into a recordset that looks like this:
Person Monday Tuesday
-------------- ------------- -------------
Mary Fletchall SMR D9 SMR D9
Mary Fletchall SMR E10 SMR E15
Mary Fletchall SMR E8 SMR Y7
I have done this in the past very easily by using SUM(), but that was with integer data. Now that i'm working with Varchar data, i cant figure out how to group these rows to produce this result.
Help!
Thanks!