I am a novice in programming and I think I set up MySQL environment properly within cloud9(including installing and But whenever I run the code the terminal shows me no command found. How should I solve this? Thanks for reading my post.
CREATE TABLE flights (id VARCHAR(20), carrier VARCHAR(20), distance VARCHAR(20));
EXPLAIN SELECT id
FROM flights AS f
WHERE distance < ( SELECT AVG(distance)
FROM flights
WHERE carrier = f.carrier);