﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / Database Programming  / SQL Help / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 09 Feb 2012 04:08:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL Help</title><link>http://www.a1vbcode.com/vbforums/Topic22013-4-1.aspx</link><description>sample table:&lt;br&gt;&lt;br&gt;[b]Customer_Table&lt;br&gt;&lt;br&gt;Customer_Code     Customer_Name     Balance[/b]&lt;br&gt;000143                 jireh                      1000&lt;br&gt;000421                 Ali                         800&lt;br&gt;&lt;br&gt;&lt;br&gt;Customer_Payments_Table&lt;br&gt;&lt;br&gt;&lt;b&gt;Invoice_Number     Customer_Code       Amount         Date&lt;/b&gt;&lt;br&gt;2423423                   000143                    500           5/15/2007&lt;br&gt;5645645                   000143                    300           6/13/2007&lt;br&gt;3435355                   Ali                           400           5/25/2007&lt;br&gt;&lt;br&gt;&lt;br&gt;...On this you can still view their payments</description><pubDate>Fri, 15 Jun 2007 00:20:59 GMT</pubDate><dc:creator>jireh</dc:creator></item><item><title>RE: SQL Help</title><link>http://www.a1vbcode.com/vbforums/Topic22013-4-1.aspx</link><description>your problem is difficult but maybe i can suggest you another way to view the latest balance of the customer.&lt;br&gt;&lt;br&gt;1. make a table where you can put all the transactions like the paying of the customers where u can see there records. ("and maybe thats the table you made in the example")&lt;br&gt;2. On the table where the customer profile stored put another field which is of course for their balance.&lt;br&gt;&lt;br&gt;&lt;br&gt;... so therefor if you want to view the balances of the customers you should go to the table of customer profile.&lt;br&gt;... if you want to update their record then you just simply edit it.&lt;br&gt;&lt;br&gt;&lt;br&gt;hope my idea can help you.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 15 Jun 2007 00:13:43 GMT</pubDate><dc:creator>jireh</dc:creator></item><item><title>SQL Help</title><link>http://www.a1vbcode.com/vbforums/Topic22013-4-1.aspx</link><description>First Look at the stucture of the table below:&lt;br&gt;&lt;br&gt;&lt;br&gt;InvoieNo     CustomerCode   CustomerName     Balance&lt;br&gt;   1                   7                  Ali                   400&lt;br&gt;   2                   7                  Ali                   300&lt;br&gt;   3                   7                  Ali                   500&lt;br&gt;   1                   4                 Bilal                  400&lt;br&gt;   2                   4                 Bilal                  500&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Now i want to pick the latest balance of each customer so the output should be:&lt;br&gt;&lt;br&gt;InvoieNo     CustomerCode   CustomerName     Balance&lt;br&gt;   3                   7                  Ali                   500&lt;br&gt;   2                   4                 Bilal                  500&lt;br&gt;&lt;br&gt;what will the query for this please help thanks in advace. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Wed, 30 May 2007 09:08:39 GMT</pubDate><dc:creator>A_Square</dc:creator></item></channel></rss>
