File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes is this both are same Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: is this both are same
 
Similar Threads
Convert SQL to HQL
Anyone any good at SQL?
JDBC question from novice
Oracle : Inner Join syntax
EJB-QL question