Is it possible to combine these select statements into one select statement???
select s.beginmileage, s.endmileage
from DTS_PoliceTriplog_tmp s
left join payRollLookup p
on s.PayrollNo=p.payrollNo
left join locationlookup l
on s.locationno=l.locationno
left join vehicllookup v
on s.vehicleNo=v.vehicleNo
where beginmileage = endmileage and directory = 'police Logs'
select s.calculatedmiles from DTS_PoliceTriplog_tmp s
where calculatedmiles < '0' and directory = 'police logs'
(select s.payrollno from DTS_PoliceTriplog_tmp s
where s.payrollno not in (select payrollno from qalookup) and directory = 'police logs')
(select s.locationno from DTS_PoliceTriplog_tmp s
where s.locationno not in (select locationno from locationlookup) and directory = 'police logs')
(select s.vehicleno from DTS_PoliceTriplog_tmp s
where s.vehicleNo not in (select vehicleNo from vehicllookup) and directory = 'police logs')
select s.beginmileage, s.endmileage
from DTS_PoliceTriplog_tmp s
left join payRollLookup p
on s.PayrollNo=p.payrollNo
left join locationlookup l
on s.locationno=l.locationno
left join vehicllookup v
on s.vehicleNo=v.vehicleNo
where beginmileage = endmileage and directory = 'police Logs'
select s.calculatedmiles from DTS_PoliceTriplog_tmp s
where calculatedmiles < '0' and directory = 'police logs'
(select s.payrollno from DTS_PoliceTriplog_tmp s
where s.payrollno not in (select payrollno from qalookup) and directory = 'police logs')
(select s.locationno from DTS_PoliceTriplog_tmp s
where s.locationno not in (select locationno from locationlookup) and directory = 'police logs')
(select s.vehicleno from DTS_PoliceTriplog_tmp s
where s.vehicleNo not in (select vehicleNo from vehicllookup) and directory = 'police logs')