1

I'm new to sql, What's the difference between

select vehicle.plates, make, model 
from vehicle 
   join registration on registration.plates = vehicle.plates 
where country = 'Japan';

And

select vehicle.plates, make, model
from registration, vehicle
where registration.plates = vehicle.plates and country=’Japan’;
Not a bug
  • 4,286
  • 2
  • 40
  • 80
mko
  • 21,334
  • 49
  • 130
  • 191
  • 2
    Both queries have a "join". The second one uses an old-style implicit join that's all. –  Nov 02 '13 at 09:31

1 Answers1

0

The first query is ANSI compliant, the other one is not.

The queries ought to return the same results, though.

SchmitzIT
  • 9,227
  • 9
  • 65
  • 92
  • The second is also ANSI compliant - in fact that was the ANSI standard before 1992 –  Nov 02 '13 at 09:32
  • @a_horse_with_no_name - Didn't even know that. I was under the impression it was a deprecated syntax. I know it still works, but the JOIN syntax is the preferred one nowadays. Learnt something new :) – SchmitzIT Nov 02 '13 at 09:37