Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
SELECT CASE WHEN Locations.[Location Name] IS NULL THEN @Location ELSE Locations.[Location Name] END AS Location, Calendar.Dt, CASE WHEN Sales.[Net Sales] IS NULL THEN 0 ELSE Sales.[Net Sales] END AS CurrentSales, LEFT(DATENAME(dw, Calendar.Dt), 3) AS DayName, DATEPART(isowk, Calendar.Dt) AS WeekNum FROM Locations LEFT OUTER JOIN Sales ON Locations.LocationNameOrig = Sales.[Location Name] RIGHT OUTER JOIN Calendar ON Sales.Date = Calendar.Dt WHERE (Locations.[Location Name] = @Location) AND (Calendar.Dt BETWEEN @Begin AND @End) OR (Locations.[Location Name] IS NULL) AND (Calendar.Dt BETWEEN @Begin AND @End) ORDER BY Calendar.Dt
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.