Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 September 17th, 2010, 01:27 PM
Registered User
 
Join Date: Aug 2010
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Lightbulb Database Joins

Hi,

I'm now upto databases in my re-read of the book, Chapter12. It talks about table joins in database queries, such as:

Code:
LEFT OUTER JOIN
Code:
INNER JOIN
I understand that it allows you to take data from two tables and collums, then sorta stick the data togethor and display it as a whole. But what is the difference? The LEFT OUTER and INNER joins both output the same? So why change the relationships between the tables

Also Imar, just a trivial question, when you are working on sites do you add all of your GridView controls (for example) in design view or strictly keep in code view? Just a question as I see how easy it is to do things in design view! I have been trying to stay in code view so I can learn the inner workings of things

Anyways, thanks a lot and I hope I'm just a little off the ball! / Ryan
 
Old September 17th, 2010, 03:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
The LEFT OUTER and INNER joins both output the same
Nope. An INNER JOIN returns records that match on both sides; a LEFT JOIN returns all records on the left side, whether they have matching records or not and includes the matching records on the right side.

You may find this Wiki page useful: http://en.wikipedia.org/wiki/Join_(SQL)

I spend time both in design view and in code view. Setting up handlers for example is way easier in Design View as it requires lots of manual coding in code view.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
What are joins? Bhalchandra SQL Server 2000 2 July 2nd, 2007 11:29 PM
Joins nalla Oracle 0 December 14th, 2005 05:54 AM
Joins r_ganesh76 SQL Server 2000 2 February 10th, 2005 12:21 AM
Joins marthaj SQL Server 2000 7 June 26th, 2003 09:02 AM





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