<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.talis.com/tdn" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Talis Developer Network - SQL to list Supplier Addresses - Comments</title>
 <link>http://www.talis.com/tdn/node/1668</link>
 <description>Comments for &quot;SQL to list Supplier Addresses&quot;</description>
 <language>en</language>
<item>
 <title>Supplier addresses</title>
 <link>http://www.talis.com/tdn/node/1668#comment-387</link>
 <description>&lt;p&gt;Supplier details are held in two tables.  These tables are SUPPLIER and CORPORATE_ADDRESS.  Not surprisingly the address details are held in the CORPORATE_ADDRESS table.  The two tables can be joined on the SUPPLIER_ID attribute which is common to both e.g.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;select SUPPLIER.SUPPLIER_CODE, SUPPLIER.SUPPLIER_NAME,&lt;br /&gt;
       CORPORATE_ADDRESS.ADDRESS_LINE_1,&lt;br /&gt;
       CORPORATE_ADDRESS.ADDRESS_LINE_2,&lt;br /&gt;
       CORPORATE_ADDRESS.ADDRESS_LINE_3,&lt;br /&gt;
       CORPORATE_ADDRESS.ADDRESS_LINE_4,&lt;br /&gt;
       CORPORATE_ADDRESS.ADDRESS_LINE_5,&lt;br /&gt;
       CORPORATE_ADDRESS.POSTCODE&lt;br /&gt;
from SUPPLIER, CORPORATE_ADDRESS&lt;br /&gt;
where CORPORATE_ADDRESS.SUPPLIER_ID = SUPPLIER.SUPPLIER_ID&lt;br /&gt;
and DEFAULT_ADDRESS =&quot;T&quot; &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will list out the default addresses for all suppliers.  Of course a supplier may have multiple address so the DEFAULT_ADDRESS may not be required.  The details of all the attributes in the two tables can be seen by using the &lt;a href=&quot;http://www.talis.com/tdn/system/files?file=art_lm138scr02_0.pdf &quot;&gt;database analyser&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Interloan supplier details are held in ILL_SUPPLIER and ILL_SUPPLIER_ADDRESS.&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Tue, 17 Oct 2006 09:13:10 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 387 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>SQL to list Supplier Addresses</title>
 <link>http://www.talis.com/tdn/node/1668</link>
 <description>&lt;p&gt;Does someone have an SQL query to produce a list of supplier names &amp;amp; full addresses. Any help provided would be much appreciated.&lt;br /&gt;
Thanks,&lt;br /&gt;
Eoin&lt;/p&gt;
</description>
 <comments>http://www.talis.com/tdn/node/1668#comments</comments>
 <category domain="http://www.talis.com/tdn/taxonomy/term/54">Miscellaneous</category>
 <pubDate>Mon, 16 Oct 2006 16:57:37 +0100</pubDate>
 <dc:creator>Eoin Mc</dc:creator>
 <guid isPermaLink="false">1668 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
