This SQL query selects the last 3 characters of the SNDPRN field from the EDP21 table where the SNDPRT field equals 'US', groups the results by SNDPRN. It then performs a right join with the PLANTID table on the PLANT_ID and SNDPRN fields, selects the PLANT_ID and CV_TB fields where CV_TB equals 'T/B', and groups the results by those two fields.
This SQL query selects the last 3 characters of the SNDPRN field from the EDP21 table where the SNDPRT field equals 'US', groups the results by SNDPRN. It then performs a right join with the PLANTID table on the PLANT_ID and SNDPRN fields, selects the PLANT_ID and CV_TB fields where CV_TB equals 'T/B', and groups the results by those two fields.
This SQL query selects the last 3 characters of the SNDPRN field from the EDP21 table where the SNDPRT field equals 'US', groups the results by SNDPRN. It then performs a right join with the PLANTID table on the PLANT_ID and SNDPRN fields, selects the PLANT_ID and CV_TB fields where CV_TB equals 'T/B', and groups the results by those two fields.
This SQL query selects the last 3 characters of the SNDPRN field from the EDP21 table where the SNDPRT field equals 'US', groups the results by SNDPRN. It then performs a right join with the PLANTID table on the PLANT_ID and SNDPRN fields, selects the PLANT_ID and CV_TB fields where CV_TB equals 'T/B', and groups the results by those two fields.