How to filter the output based on the output of count in MySQL?

Viewed 62

Tables in my database: 1. Employee

Employee table

2.Aircraft

Certified table

3.Certified

enter image description here

Query: I need to find pilot name, eid, aircraft name, cruising_range where pilot is certified to fly more than 3 aircraft's . i wrote a query and it works but i want to know if there is a simple way to achieve this because my query seems much complicated .

My query is :

enter image description here

Edit: Corrected the name of tables.

2 Answers
Related