The following Where statement is basically listed twice with one variable changing. Specifically, DecisionStatusName is first listed as Approved and last listed as Rejected.
Can this Where statement be written without having to list almost everything twice? If so, does it matter?
WHERE
dbo.tasknote.WOID = maxresults.WOID and dbo.tasks.clsdby IS NULL and dbo.decisionstatus.decisionstatusname='Approved'
or dbo.tasknote.WOID = maxresults.WOID and dbo.tasks.clsdby IS NULL and dbo.decisionstatus.decisionstatusname='Rejected'
Can this Where statement be written without having to list almost everything twice? If so, does it matter?
WHERE
dbo.tasknote.WOID = maxresults.WOID and dbo.tasks.clsdby IS NULL and dbo.decisionstatus.decisionstatusname='Approved'
or dbo.tasknote.WOID = maxresults.WOID and dbo.tasks.clsdby IS NULL and dbo.decisionstatus.decisionstatusname='Rejected'