I'm starting out with SQL and for some reason the professor advised us to stay away from JOIN statements. However, after doing some reason I've come to a conclusion that JOIN statements are actually preferred. What's the official stance on this?
Also, I'd like to convert this WHERE statement to JOIN statement:
SELECT max(z.depttime)
FROM flights z
WHERE z.ref = p.ref
AND z.depttime < f.depttime
I've tried this, but apparently it's wrong :
SELECT max(z.depttime)
FROM bus_journey z
JOIN z.ref=p.ref
ON z.depttime < f.depttimewhere
Also, just to clarify, the reason why i'm converting from WHERE to JOIN is that the software i'm using states that "Old style JOIN (ANSI JOINs) are not allowed. Please use standard syntax."
Any help is appreciated. Cheers!