I have a data set that contains a booking with a primary key bookingID and StartDate and EndDate
My original table has 2269 rows and if I do a count of days between start and end and sum the total, I should have 9233 individual date records, but for some reason I lose lots and end up with 1758.
Will do, the annoying thing is, that it’s working fine for some records, record 517 for instance has a start date of 2011-11-07 and an end date of 2011-11-11 and it’s bringing back all the dates from 7th to 11th no problems, can’t understand why it’s doing some but not others…
The same thing happens if I do comparisons on the Julian date form just in case and it happens whether I do the join in SQL Server management studio or BODS:
SELECT * FROM DIM_JOBS1, DIM_Date
WHERE JULIANDATE>=JULIANSTART AND JULIANDATE<=JULIANEND
ORDER BY BOOKINGID;
I wish I could see a pattern to what it’s rejecting…