... WHERE WeekNumber=wm.[WeekNumber])) AS 'Date',
tt.[RoomId] AS 'Room',
tt.[StartTime] AS 'Start',
tt.[FinishTime] AS 'Finish',
sd.[Descrip] AS 'Event Type',
sd.[Notes] AS 'Booking Notes',
c.[Name] ...
... expression as the one we use to get the equipment information:
SELECT
DISTINCT
re.[RoomId]
,re.[SiteId]
,re.[EquipId]
,eq.[Description]
FROM
[ROOMEQUIPMENT] re
INNER ...
... sd.[SetId] = @setId
AND dateadd(d, tt.[WeekDay] - 1, @baseDate) = @GivenDate
AND wm.[WeekNumber] = @weekNumber
AND tt.[SiteId] = @siteId
AND upper(sd.[Descrip]) not like 'ADDITIONAL TIMETABLE%'
...
... dateadd(d, tt.[WeekDay] - 1, @baseDate)) AS 'Day',
tt.[SiteId] AS 'Site',
tt.[StartTime] AS 'Start',
tt.[FinishTime] AS 'Finish',
tt.[RoomId] AS 'Room',
sd.[Descrip] AS 'Event Type',
sd.[Notes] ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.