mirror of https://github.com/kacos2000/Queries
Delete Notifications_WPNdatabase.sql
parent
b344a09c2c
commit
4077589e8b
@ -1,20 +0,0 @@
|
||||
select
|
||||
Notification.Id,
|
||||
|
||||
|
||||
NotificationHandler.PrimaryId as 'Application',
|
||||
NotificationHandler.HandlerType,
|
||||
NotificationHandler.WNSId as 'Type',
|
||||
Notification.Payload,
|
||||
datetime((Notification.ArrivalTime - 116444736000000000)/10000000, 'unixepoch') as ArrivalTime,
|
||||
case when Notification.ExpiryTime = 0 then 'Expired' else datetime((Notification.ExpiryTime - 116444736000000000)/10000000, 'unixepoch') end as ExpiryTime,
|
||||
NotificationHandler.CreatedTime,
|
||||
NotificationHandler.ModifiedTime
|
||||
|
||||
|
||||
|
||||
from Notification
|
||||
Join NotificationHandler on Notification.HandlerId = NotificationHandler.RecordId
|
||||
|
||||
--group by HandlerId
|
||||
order by Id desc
|
Loading…
Reference in New Issue