Below is my conclusion, I want to display only those names that are repeated. Each name is a pilot, and the number is a type of flying bat aircraft. I want to show the names of pilots who fly on the same plane. I am using sql * plus
PIL_PILOTNAME DEP_EQUIP_NO ------------------------------ ------------ Gladchuk, Chet 1085 Gladchuk, Chet 1345 Green, Edward L. 1489 Harris, Kenneth C. 1253 Leiss, Ernst L. 1194 Long, Stuart 1081 Pasewark, William B. 1026 Pasewark, William B. 1347 Scamell, Richard 1368
My output should only display:
PIL_PILOTNAME DEP_EQUIP_NO ------------------------------ ------------ Gladchuk, Chet 1085 Gladchuk, Chet 1345 Pasewark, William B. 1026 Pasewark, William B. 1347
Here is my request:
select distinct pil_pilotname,dep_equip_no from pilots join departures on dep_pilot_id = pil_pilot_id join equip_type on eq_equip_no = dep_equip_no order by pil_pilotname;
source share