﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2012 / SQL Server 2012 -  T-SQL  / How to find the tables to join ? / 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>Sat, 25 May 2013 17:53:43 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>If you really don't know the structure, then you need to hope that all the tables have foreign keys. You can look at the dependencies of one of the tables, say Products, to see which tables are related to it. Then you can walk the chain to figure out how to connect the tables you want. [url=http://www.mssqltips.com/sqlservertip/1294/listing-sql-server-object-dependencies/]Here's a great article from SQL Tip[/url]s that shows a ton of ways to get this done.</description><pubDate>Thu, 31 Jan 2013 06:20:47 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>[quote][b]salmita (1/29/2013)[/b][hr]that's my question??? i don't know which ones can do the join ?[/quote]Well think about what you are asking. You are starting with knowing that you need customer and product information. You have that part down but think about what gets you from one to the other. What happens when a customer purchases something?</description><pubDate>Tue, 29 Jan 2013 12:36:25 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>that's my question??? i don't know which ones can do the join ?</description><pubDate>Tue, 29 Jan 2013 12:25:53 GMT</pubDate><dc:creator>salmita</dc:creator></item><item><title>RE: How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>[quote][b]salmita (1/29/2013)[/b][hr]I wanna display the names of the customers along with the product names that they have purchased !![/quote]So what table(s) do you think you might need for this?</description><pubDate>Tue, 29 Jan 2013 12:20:26 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>I wanna display the names of the customers along with the product names that they have purchased !!</description><pubDate>Tue, 29 Jan 2013 11:41:34 GMT</pubDate><dc:creator>salmita</dc:creator></item><item><title>RE: How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>[quote][b]salmita (1/29/2013)[/b][hr]Hello,I am beginner in T-SQL.I need to find the tables to the join between the table "Product" table and the "Customer" of the database AdventureWorks2012.Any idea ? Thank you.[/quote]Customers have no direct tie to Products. Are you wanting to maybe see the Products that a customer has ordered?</description><pubDate>Tue, 29 Jan 2013 10:29:11 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>How to find the tables to join ?</title><link>http://www.sqlservercentral.com/Forums/Topic1413151-3077-1.aspx</link><description>Hello,I am beginner in T-SQL.I need to find the tables to the join between the table "Product" table and the "Customer" of the database AdventureWorks2012.Any idea ? Thank you.</description><pubDate>Tue, 29 Jan 2013 09:39:02 GMT</pubDate><dc:creator>salmita</dc:creator></item></channel></rss>