I have a table with an EntryDate and a ChecklistDay column. They are Date and Integer columns. I want to return two columns, one named StartDate and another EndDate, both getting their values from the EntryDate column. StartDate would be returned from...
SELECT EntryDate AS StartDate FROM TABLE WHERE ChecklistDay = 1
EndDate would be returned from...
SELECT EntryDate AS EndDate FROM TABLE WHERE ChecklistDay = 10
Now I only want to return a row if a value is returned for both StartDate and EndDate, meaning that a ChecklistDay must have both values 1 and 10 in order for it to select the two EntryDates and return a row. What kind of query do I use here?