aspose file tools*
The moose likes JDBC and the fly likes Inner Query Execution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Inner Query Execution" Watch "Inner Query Execution" New topic
Author

Inner Query Execution

Guddu Ali
Greenhorn

Joined: Jul 18, 2012
Posts: 29
select :name from (select empName from Employee);

Suppose the Inner query (select empName from Employee) gives one name 'XYZ'.

And as we know the Inner query and sub query execute first then why we not write directly

select :name from XYZ inplace of writing select :name from (select empName from Employee);
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30957
    
158

In this case you would. Inner queries should only be used when they are performing a task that can't be accomplished with a regular simple query.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inner Query Execution