0

Hello stackoverflow community!

I'm having trouble creating a mysql query.

I have 2 tables:

1) vehicles(engine_id)

2) engines(id, power)

I need to select all the vehicles, whose engine's power is > than some value. Could you please help me with that ? Thank you!

1 Answer 1

1
    SELECT *
      FROM Vehicles
INNER JOIN Engines On Vehicles.engine_id = engines.id
     WHERE Engines.power > yourValues
Sign up to request clarification or add additional context in comments.

1 Comment

On MYSQL this will be the fastest.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.