IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Which type is more efficient Nested Subqueries or Joins


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SMF record type 30 JCL & VSAM 8
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts Changing Data Type SYNCSORT 4
No new posts How efficient are you, while working ... General Talk & Fun Stuff 0
No new posts SMS:- Efficient filter lists in ACS All Other Mainframe Topics 7
Search our Forums:

Back to Top