This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes is this both are same Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "is this both are same" Watch "is this both are same" New topic
Author

is this both are same

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
INNER JOIN Orders
ON Persons.P_Id=Orders.P_Id
ORDER BY Persons.LastName


AND

SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
INNER JOIN Orders
Where Persons.P_Id=Orders.P_Id
ORDER BY Persons.LastName
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The second one uses invalid syntax.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: is this both are same
 
Similar Threads
Anyone any good at SQL?
EJB-QL question
JDBC question from novice
Oracle : Inner Join syntax
Convert SQL to HQL