Duplication in security log table
Posted: Mon Jun 11, 2018 7:31 am
I have a query that joins on the securitylog table, but there is some duplication, in particular the Permtype 25 which is the type for "Appointment Creation". How can there be multiple appointment creation records mere seconds apart from each other?
Code: Select all
"758434" "25" "17" "2018-03-19 08:11:37" "03/21/2018 2:00:00 PM, PeriodicX, PA1st, PAadd, PAadd, 4BWX, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX" "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"758435" "25" "17" "2018-03-19 08:11:40" "03/21/2018 2:00:00 PM, PeriodicX, PA1st, PAadd, PAadd, 4BWX, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX" "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"758436" "27" "17" "2018-03-19 08:12:10" "03/21/2018, PeriodicX, PA1st, PAadd, PAadd, 4BWX, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX" "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"758437" "27" "17" "2018-03-19 08:12:14" "03/21/2018, PeriodicX, PA1st, PAadd, PAadd, 4BWX, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX" "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"758479" "26" "5" "2018-03-19 08:34:31" "PeriodicX, PA1st, PAadd, PAadd, 4BWX, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX, from 03/21/2018 2:00:00 PM, to 03/21/2018 9:00:00 AM" "9609" "01PFDREC01" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"760016" "27" "23" "2018-03-20 15:58:17" "03/21/2018, PeriodicX, PA1st, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX" "9609" "01PFDOPS03" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"760036" "120" "17" "2018-03-20 16:02:10" "Appointment confirmation status changed from Unconfirmed to Left Msg on Ans Mach from the appointment module." "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"760158" "120" "22" "2018-03-21 08:55:45" "Appointment confirmation status changed from Appointment Confirmed to Ready to go Back from the appointment module." "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"760161" "26" "23" "2018-03-21 09:02:38" "PeriodicX, PA1st, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX from 03/21/2018 9:00:00 AM, to 03/21/2018 9:00:00 AM" "9609" "01PFDOPS03" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"760168" "120" "22" "2018-03-21 09:08:11" "Appointment confirmation status changed from Ready to go Back to In Treatment Room from the appointment module." "9609" "01PFDREC02" "50107" "0" "0" "0" "0001-01-01 00:00:00"
"760206" "27" "23" "2018-03-21 09:39:42" "PeriodicX, PA1st, TestMucAb, ProphyAd, TopFlApp, OralHygIn, HHX, 03/21/2018 9:00:00 AM, Set Complete" "9609" "01PFDOPS03" "50107" "0" "0" "0" "0001-01-01 00:00:00"