MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 22nd, 2004, 03:16 PM
BratCat2 BratCat2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 20 BratCat2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with Join, Union

I have a table with a field named Events.
In this field is events like Bowling, Concert etc..

The next field has people who are going to the Events and some people will be going to multiple Events.

The problem is I need to list each Event and only those people associated with each Event they are going to.

Right now I get this when I create a query:

Event Name

Bowling Bob
Bowling John
Concert Bob
Concert John



I would rather list them as Events related to Names.
In VB6 I have a dataCombo that lists the Events and Names
But I need the DataCombo to show an Event and all those Names that have that Event with it.

Right now the datacombo has the Events seperately with each Name.

How can I query for each Name as related to Event ?

Thanks !


Reply With Quote
  #2  
Old March 1st, 2004, 05:49 PM
sypher sypher is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Montreal
Posts: 92 sypher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 10 sec
Reputation Power: 5
you have one table with Event&Name in it?

select name
from tableName
where Event=?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Help with Join, Union


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway