﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Database Design / Relational Theory  / Possible Join of One Table Field to Two Master Table Fields? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 26 May 2013 03:23:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Possible Join of One Table Field to Two Master Table Fields?</title><link>http://www.sqlservercentral.com/Forums/Topic603750-374-1.aspx</link><description>You're a champion, Chris!Thank you very much! :D</description><pubDate>Mon, 17 Nov 2008 09:46:47 GMT</pubDate><dc:creator>liam.bell</dc:creator></item><item><title>RE: Possible Join of One Table Field to Two Master Table Fields?</title><link>http://www.sqlservercentral.com/Forums/Topic603750-374-1.aspx</link><description>Liam, you need to join the states table twice:[code]SELECT m.member, h.HomeState, m.WorkState FROM master mLEFT JOIN States h ON h.[ID] = m.HomeStateLEFT JOIN States w ON w.[ID] = m.WorkState[/code]CheersChrisM</description><pubDate>Mon, 17 Nov 2008 09:36:26 GMT</pubDate><dc:creator>ChrisM@Work</dc:creator></item><item><title>Possible Join of One Table Field to Two Master Table Fields?</title><link>http://www.sqlservercentral.com/Forums/Topic603750-374-1.aspx</link><description>Came across a small problem. I have a master table that contains a record of each member. In this talbe there are two fields; "HomeState", and "WorkState". Both of these fields have a Int value representing the ID value of the corresponding state in the States table.I'm trying to pull back the data as such:Member, HomeState, WorkStateJoe.Smoe, TX, AZJane.Doe, VA, DCWhat sort of JOIN would one use to accomplish this? Is it even possible?Cheers.</description><pubDate>Mon, 17 Nov 2008 09:32:18 GMT</pubDate><dc:creator>liam.bell</dc:creator></item></channel></rss>