Is it possible to build a condition into an SQL where statement to perform a different selection dependant on the value of a selection parameter?
e.g.
Selection Parameter = JobNo
Value can be either a job number or 'ALL'
If I enter a job number, then my 'WHERE' statement must only select values from the table matching this job number, EXCLUDING NULL values.
If I enter 'ALL' then my 'WHERE' statement must select ALL records, including NULL values.
Any help appreciated!
Mike
e.g.
Selection Parameter = JobNo
Value can be either a job number or 'ALL'
If I enter a job number, then my 'WHERE' statement must only select values from the table matching this job number, EXCLUDING NULL values.
If I enter 'ALL' then my 'WHERE' statement must select ALL records, including NULL values.
Any help appreciated!
Mike