Gotta be a simple one this....
Agent report. Have changed the name (presentation name) of one of the agents in a team, now the report for that team shows both names individually, every day!
Must be a simple bit of code somewhere that I can use to only have the latest presentation name?
[size=10pt][size=10pt][b]SELECT[/b] AL1.PRESENTATION_NAME, AL1.OBJECT_ID, AL2.DISPLAY_DATE, AL2.QUERY_DATE, AL5.TN_INBOUND, AL5.TN_OUTBOUND, AL5.TT_INBOUND, AL5.TT_CONSULT, AL5.TN_INT_MADE, AL5.TN_INT_TAKEN, AL5.TT_OUTBOUND, AL5.TT_ACW, AL5.TT_HOLD_INTERNAL, AL5.TT_NOT_READY, AL5.TT_HOLD_INBOUND, AL5.TT_HOLD_UNKNOWN, AL5.TT_WAIT, AL5.TT_HOLD_OUTBOUND, AL5.TT_LOGIN, AL5.TN_TRAN_MADE, AL4.PRESENTATION_NAME, AL5.TN_HOLD, AL5.TOTAL_SHORT_CALLS_, AL5.TN_CONSULT, AL5.TT_HOLD, AL5.TT_HOLD_CONSULT
[b]FROM[/b] dbo.O_A_PERF_DAY AL1, dbo.T_A_PERF_DAY AL2, dbo.OBJ_TO_OBJ AL3, dbo.O_GA_PERF_DAY AL4, dbo.R_A_PERF_DAY AL5
[b]WHERE[/b] (AL2.END_TIME_GMT>AL3.ADD_TIME_GMT AND AL3.CHILD_ID=AL1.OBJECT_ID AND AL3.PARENT_ID=AL4.OBJECT_ID AND AL5.TIME_KEY=AL2.TIME_KEY AND AL5.OBJECT_ID=AL1.OBJECT_ID) AND ((AL4.PRESENTATION_NAME='VAG_Regulated_Sales' AND (CONVERT(VARCHAR(

,(DATEADD(day,-1, GETDATE())), 112) = AL2.DATE_YYYYMMDD) AND (AL3.DELETE_TIME_GMT IS NULL OR AL3.DELETE_TIME_GMT>AL2.BEGIN_TIME_GMT)))[/size][/size]
Any ideas people?