Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Which type is more efficient Nested Subqueries or Joins

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ashikrim

New User


Joined: 18 Aug 2006
Posts: 12

PostPosted: Thu Aug 31, 2006 4:29 pm    Post subject: Which type is more efficient Nested Subqueries or Joins
Reply with quote

Hi,

Which type of queries is more efficient Nested Subqueries or Joins?? Plz help.

Rgds,
Rima.
Back to top
View user's profile Send private message

prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Aug 31, 2006 4:34 pm    Post subject:
Reply with quote

I think joins are more efficient than the nested (specially correlated sub queries), though it depends on the requirement to choose between the two.
Back to top
View user's profile Send private message
ashikrim

New User


Joined: 18 Aug 2006
Posts: 12

PostPosted: Thu Aug 31, 2006 5:04 pm    Post subject:
Reply with quote

Hi prasad,

Thanx for the reply.....How do v judge that??? I was asked in an interview whether joins or subqueries are better?? even i answered as joins but bases on the number of passes subquery was better comparitively. So how do v answer the above question...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Setting Font Type for XMIT satish.ms10 All Other Mainframe Topics 3 Fri Sep 15, 2017 10:01 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Ccompar BLOB (images of type jpg) on ... nihad DB2 0 Sun Feb 05, 2017 3:13 pm
No new posts Efficient sorting chandracdac DFSORT/ICETOOL 5 Sat Oct 22, 2016 3:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us