craig.bobchin (12/4/2014)
With these tables, an upsert isn't necessary since the records are not updated once they're written. A new record is appended to the tables in Avaya.
Yes... that's understood. My point is that they may be written latter and the way that you're doing the comparison may eliminate calls that start before your every-30-minute run and end after the run is complete.
If you're sure that won't happen (and I'm convinced it will happen), then the simplified script I posted will work.