Multiple Non-Equi JOINs Practice - self join table pe join on non-equi join and not primary key
Wed May 10 2023 00:59:01 GMT+0000 (Coordinated Universal Time)
Saved by @vnmshenoy #undefined
3 times self join ..i did it using inner query. One thing i was always doing when self join was that i was joining on the primary key of self join tables something like c.id = c1.id. however in the their answer, they don't do that. see above , how they join on non-equi joins (and not id's but prod_year eg c1.prod_year > c2.prod_year)
https://learnsql.com/track/sql-practice/course/joins/challenge/challenge-time/exercise-6
Comments