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:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old April 21st, 2004, 07:32 AM
damalo damalo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Over there -->
Posts: 49 damalo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 45 m 53 sec
Reputation Power: 5
Arrow Mtm SQL query trouble

right here's one thats been wrecking my head for about 2 days long!

3 tables.
Skill- rid,title
Group - rid,title
mtmSkill2Group - rid,group_id,skill_rid


in table skill we have a list of skills
in group we have 4 different groups to which skills will belong
mtmSkill2Group is the linking table between them. It has primary key rid and foreign keys group_rid and skill_rid.

im trying to write a query to print a list of skills for each group.
ive tried something like this :
Code:

select s.title from Skill s where s.rid =
(select m.group_rid from mtmSkill2Group m where s.rid=m.skill_rid)


and god help me im getting mad results...im lost...someone please point me in the right direction with a line or too of the ol SQL!

Cheers,
damalo

Reply With Quote
  #2  
Old April 21st, 2004, 09:05 AM
damalo damalo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Over there -->
Posts: 49 damalo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 45 m 53 sec
Reputation Power: 5
got it...try try try again is all ill say!

cheers for those who took time to read and ponder!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Mtm SQL query trouble


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 1 hosted by Hostway