Wrox Programmer Forums
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 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 January 14th, 2007, 07:24 PM
Friend of Wrox
Join Date: Jul 2006
Posts: 238
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to rsearing
Default General SELECT question

Could someone tell me how to form a SQL Select where I have:

a) A MEMBER table with memberID and memberName
b) A EVENT table with eventID and eventName
c) A MEMBER_EVENT table with m_eID and eventID, memberID

Given a memberID "x" I want to select all the eventName's associated with that member in the MEMBER_EVENT table...

Please Help.

Kind Regards,

Old January 16th, 2007, 12:01 PM
Authorized User
Join Date: Dec 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts

SELECT b.eventName
    JOIN EVENT b ON a.eventID = b.eventID
WHERE a.memberID = x

Adam Gossage
Lake Wylie, SC, USA

Similar Threads
Thread Thread Starter Forum Replies Last Post
General Information Question seananderson ASP.NET 1.0 and 1.1 Basics 4 February 15th, 2007 12:55 PM
General Question About c++ madeebmir C++ Programming 0 August 15th, 2006 10:48 AM
Very general question merianos VB How-To 4 August 1st, 2006 12:24 PM
General Scoping Question cliffd64 VB.NET 2002/2003 Basics 2 June 9th, 2005 06:37 AM
General Question stu9820 ASP.NET 1.0 and 1.1 Basics 2 September 23rd, 2003 03:36 PM

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