Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.
SELECT DISTINCT A.CARRIER_ID, MAX (A.EFFECTIVE), A.TRLR_TYPE_ID, A.CURRENT_NUM_VEHICLES, L.NAME FROM TL_RESOURCE_TRLR A, CARRIER_EQUIP B,LANE L WHERE A.CARRIER_ID = B.CARRIER_ID(+) AND A.TRLR_TYPE_ID = B.TRLR_TYPE_ID(+) AND A.LANE_ID = L.ID AND B.CARRIER_ID IS NULL -- EXCLUDE ROWS ADDED BECAUSE OF THE OUTER JOIN GROUP BY a.carrier_id, a.trlr_type_id, current_num_vehicles, L.NAME ORDER BY A.CARRIER_ID ASC;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.