Created
May 30, 2018 12:05
-
-
Save aburok/924a66b8bdc6ec36fce24711fc80c97a to your computer and use it in GitHub Desktop.
Umbraco user notification SQL Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Select all notifications for user | |
SELECT TOP 1000 | |
uu.userName, | |
uu.userEmail, | |
[userId], | |
cd.[nodeId], | |
cd.text, | |
cd.published, | |
cd.updateDate, | |
[action] | |
FROM [dbo].[umbracoUser2NodeNotify] u2n | |
inner join umbracoUser uu on u2n.userId = uu.id | |
inner join cmsDocument cd on u2n.nodeId = cd.nodeId and cd.published = 1 | |
-- where u2n.userId = 0 | |
order by userid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment