Skip to content

Instantly share code, notes, and snippets.

@DarkAllien
Created July 4, 2018 08:46
Show Gist options
  • Select an option

  • Save DarkAllien/f12d6e0aa20bb553dee1fc96fca3eb27 to your computer and use it in GitHub Desktop.

Select an option

Save DarkAllien/f12d6e0aa20bb553dee1fc96fca3eb27 to your computer and use it in GitHub Desktop.
SELECT [s].[Name0],
[s].[Full_Domain_Name0],
[sp].*
FROM [dbo].[v_HS_sqlpatching] [sp]
LEFT JOIN [dbo].[v_R_System] [s] ON [s].[ResourceID] = [sp].[resourceid]
ORDER BY [s].[name0],
[sp].[querytime0];
--or
SELECT [s].[Name0],
[s].[Full_Domain_Name0],
[sp].*
FROM [dbo].[v_gs_sqlpatching] [sp]
LEFT JOIN [dbo].[v_R_System] [s] ON [s].[ResourceID] = [sp].[resourceid]
ORDER BY [s].[name0],
[sp].[querytime0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment