Sometimes my eyes goes bonkers with these joins. Please help me build the select statement
product_version
id version
----------------
1 apple
2 orange
3 pineapple
executions
id class methods plat_version orig_prod_version
-----------------------------------------------------------------
1 SomeTest check 2 1
2 AnotTest submit 3 2
I want to pull from the executions but convert the numbers from the version that is in the other table. I was trying to start off and just do one at this point. Here is what I have
SELECT e.id,
e.class,
e.plat_version,
pv.id,
pv.version,
pv.version AS plat_version FROM executions e JOIN product_versions pv ON pv.version = e.plat_version
Thanks for the help.
UPDATE: I am hoping that it pulls the records from the executions table but instead of seeing numbers for plat_version and orig_prod_version, I want to see corresponding version fields from the other table
