Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 9th, 2006, 11:29 AM
Registered User
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default plz recommend...

I want to improve my queries knowledge lz suggest me wot i do...

Wot is the difference between using joins to get data from more than one tables and using subqueries to do same. when to use what.
i'll b thankful to whom reply

Old July 10th, 2006, 06:31 AM
Registered User
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

when you need to retrive the data from more than one columns of multiple tables then use joins.otherwise use subquery.if you want improve the query knoladge then use books online and start practicing the example given there.

Old August 25th, 2006, 05:49 AM
Registered User
Join Date: Aug 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

Basically using subquery than joins mostly results in performance degradation, however using subqueries for smaller tables is fine while for larger tables go for joins (because subqueries may introduce internal worktables which is an extra overhead) !

Harsh Athalye
"Nothing is impossible"

Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE RECOMMEND JORGEMAL ASP.NET 2.0 Basics 1 September 26th, 2008 09:43 PM
Can you recommend this book? Hanne B. Stegemueller BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 4 December 7th, 2006 11:13 AM
Can you recommend this book? barberj BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 4 June 5th, 2006 04:38 AM
Which database would you recommend Psionman Pro VB Databases 1 October 4th, 2004 11:07 AM
XML DOM parser in java... recommend, plz sonicDace XML 0 February 3rd, 2004 02:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.