Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2005, 10:43 AM
Authorized User
 
Join Date: Oct 2004
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is the difference between these two?

Hi,

My question is what is the difference between these two?

1)Select * from sales join stores on sales.stor_id=stores.stor_id

2)Select * from sales,stores where sales.stor_id=stores.stor_id

Expecting reply,
Ramkumar

A.D.Ramkumar
__________________
Ramkumar A D
 
Old January 14th, 2005, 11:16 AM
Ben Ben is offline
Authorized User
 
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The former is the new join style and compliant with the ANSI SQL-92 standard, the latter is the old join style. There's no loss in performance in either style, the only benefit is the new join style is slightly more verbose. In addition, the Old Outer Join Style *= and =* is now redundant.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between name(*) and name() vikkiefd XSLT 3 March 11th, 2008 06:40 AM
Difference ashu .NET Framework 1.x 1 March 27th, 2007 09:46 AM
difference Magen Classic ASP Basics 2 January 29th, 2007 04:48 PM
what's the difference? jdkxxx Oracle 3 October 8th, 2005 12:33 PM
The difference mhergenrader J2EE 1 July 15th, 2005 07:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.