join - Joining two tables. Which SQL is right? -


i trying check whether day values stored @ sales id level. in 2 different tables. have created 2 different queries. tell me 1 right.

select s.sales_id,count(d.id)    w_sales_order_line_f s,    w_day_d d        d.id = s.schedule_id     group s.sales_id ; 

or

 select s.sales_id,count(d.id)    w_sales_order_line_f s join    w_day_d d     on    d.id = s.schedule_id     group s.sales_id ; 

i trying improve performance. want know based on performances , runtime etc.

both equivalent, latter query preferable conforms newer ansi-92 sql standard.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -