I have this problem that user are going to provide an inparameter that I will use as a critera. User can choose from two diffrent dates or leave them out. This leave me tree diffrent scenario to handle in the query.
1. If date 1 is filled in, query shall return all rows where field XXX IS NOT NULL
2. If date 2 is filled in, query shall return all rows where field XXX IS NULL
3. If no date is selected, my query shall return all rows.
Is there anyway to write this in one select statement. I am going to use the query to build an report later on.
/Maria
1. If date 1 is filled in, query shall return all rows where field XXX IS NOT NULL
2. If date 2 is filled in, query shall return all rows where field XXX IS NULL
3. If no date is selected, my query shall return all rows.
Is there anyway to write this in one select statement. I am going to use the query to build an report later on.
/Maria