DECLARE @qstartdate date, @qenddate date
SET @qstartdate = '2012-01-01'
SET @qenddate = '2012-01-31'
SELECT *
FROM dbo.ORDER_ENTRY order
WHERE
order.ORDER_DATE BETWEEN CAST(@qstartdate as DATE) AND CAST(@qenddate as DATE)
OR
order.SHIPPING_DATE BETWEEN CAST(@qstartdate as DATE) AND CAST(@qenddate as DATE)