SQL Basics

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

Go Back   Tutorialized ForumsDatabasesSQL Basics

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 Tutorialized Forums Sponsor:
Old February 5th, 2013, 02:02 PM
meadsie meadsie is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
Join Date: Feb 2013
Posts: 1 meadsie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 19 sec
Reputation Power: 0
Joining Query


I wonder if anyone can help.

I have a table called lookup l and 2 tables called Event e and Staff s

I need to display the description of a field on the event and also a field on the staff tables. The only way to display the descriptions is to join it to the lookup table and choose the field l.description.

How can i do a double join on one table?

I have written the following on the seperate tables but i need to know how to join them together to display both descriptions.

inner join lookup l on event_type e = l.code_type
where l.code_type = '2'

inner join lookup l on s.team = l.code_type
where l.code_type = '196'

Any ideas please?

Many thanks


Reply With Quote

Viewing: Tutorialized ForumsDatabasesSQL Basics > Joining Query

Developer Shed Advertisers and Affiliates

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 | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap