Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional SQL Server 2005 Programming ISBN: 0-7645-8434-0
This is the forum to discuss the Wrox book Professional SQL Server 2005 Programming by Robert Vieira; ISBN: 9780764584343
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2005 Programming ISBN: 0-7645-8434-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 12th, 2010, 12:23 PM
Registered User
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rookie question about "Professional" book

The following example is from the chapter on advanced query techniques. My question: does it make any difference whether you specify "distinct" in the subquery? I sometimes use it and sometimes don't, for no particular reason. Trivial, maybe, but a matter of curiosity. Thanks.

Code:
 USE AdventureWorks

     SELECT e.EmployeeID, FirstName, LastName
     FROM HumanResources.Employee e
     JOIN Person.Contact c
       ON e.ContactID = c.ContactID
     WHERE e.EmployeeID NOT IN
       (SELECT DISTINCT EmployeeID
         FROM HumanResources.JobCandidate
         WHERE EmployeeID IS NOT NULL)
__________________
Have you hugged your data today?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in sample code "Professional Codeigniter" langithitam BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 5 November 1st, 2009 06:20 AM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 02:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 05:56 AM
Code Download for "Professional XSL" Book sowjanya_sadhu BOOK: XSLT Programmer's Reference, 2nd Edition 1 July 2nd, 2009 07:50 AM
How to download Code in "Professional Active Server Page 3.0 " book. renjith0 All Other Wrox Books 2 April 2nd, 2009 06:06 AM



All times are GMT -4. The time now is 07:29 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.