I should know this but I cannot remember, how do I add another column to show AmountDays* PitchValues.Value = results.
SELECT DATEDIFF(day, Bookings.ArrivalDate, Bookings.DepartureDate) AS AmountDays,
PitchValues.Value
FROM Bookings
INNER JOIN PitchValues
ON Bookings.PitchType_Skey = PitchValues.PitchType_Skey
Results so far
AmountDays PitchValues.Value BookingValue
15 £15
7 £9
8 £25
alternatively, and only for making it look pretty:
you also might want to perform ISNULL(,0) around your columns in the event there is a null, the entire value will become null. Like so: