Hi,
Exemple of my current data:
Account Date_Time Queue
123 2006-03-02 13:28:14.577 I
123 2006-07-13 15:03:33.000 ASmith
123 2006-07-13 16:03:33.000 P
123 2006-07-13 15:03:33.000 BClinton
What I need to do is to make those same account# into one record with fields like
Acct Informal_Date_Time InFomal_Agent_Name Formal_Date_time Formal_Agent_Name
123 2006-07-13 15:03:33.000 ASmith 2006-07-13 15:03:33.000 BClinton
It will ignore records with "queue" value less than 2 characters (in order words, it only pick up records with valid name only) and the record with earlier date_time will be informal_date_time/informal_agent_name, the other (most recent date_time) will be formal.
I am not familiar with SQL that much so this is a bit complicated for me. Thanks in advance for your help.
Exemple of my current data:
Account Date_Time Queue
123 2006-03-02 13:28:14.577 I
123 2006-07-13 15:03:33.000 ASmith
123 2006-07-13 16:03:33.000 P
123 2006-07-13 15:03:33.000 BClinton
What I need to do is to make those same account# into one record with fields like
Acct Informal_Date_Time InFomal_Agent_Name Formal_Date_time Formal_Agent_Name
123 2006-07-13 15:03:33.000 ASmith 2006-07-13 15:03:33.000 BClinton
It will ignore records with "queue" value less than 2 characters (in order words, it only pick up records with valid name only) and the record with earlier date_time will be informal_date_time/informal_agent_name, the other (most recent date_time) will be formal.
I am not familiar with SQL that much so this is a bit complicated for me. Thanks in advance for your help.