Hi, I have a table of Prices with a start date, end date and price. I want a search to pass in a date range and return whether a price exists for all days in that range. The date range can span multiple prices, just not have any gaps in between.
Is this possible?
Prices
startDate datetime
endDate datetime
price
DECLARE @startDate datetime = '2010-04-01',
@endDate datetime = '2010-04-30'
SELECT * FROM Prices WHERE @startDate BETWEEN startDate AND endDate...