<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'I need help with a calculated column in sql and formatting' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'I need help with a calculated column in sql and formatting' posted on the 'SQL-Server' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 02:40:20 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 02:40:20 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>I need help with a calculated column in sql and formatting</title>
      <link>http://www.programmersheaven.com/mb/sql-server/429779/429779/i-need-help-with-a-calculated-column-in-sql-and-formatting/</link>
      <description>Hi there and thanks in advance for your help.&lt;br /&gt;
&lt;br /&gt;
I have a table with an amount and rate columns.&lt;br /&gt;
&lt;br /&gt;
I am creating a view based on this table and I want to add a calculated column that will provide the result between the amount and the rate columns.&lt;br /&gt;
&lt;br /&gt;
SELECT dbo.Invoices.Amount, &lt;br /&gt;
       dbo.Invoices.TransactionRate, &lt;br /&gt;
       dbo.Invoices.Amount * dbo.Invoices.TransactionRate AS Trans_Amt&lt;br /&gt;
FROM  dbo.Properties &lt;br /&gt;
&lt;br /&gt;
The query and the creation of the Trans_Amt column works fine.&lt;br /&gt;
&lt;br /&gt;
The problem is that the calculated column has too many decimal places and I do not know how to format the calculated column to show only 2 decimal places.&lt;br /&gt;
&lt;br /&gt;
I am using Access as the GUI &lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
Rio&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/sql-server/429779/429779/i-need-help-with-a-calculated-column-in-sql-and-formatting/</guid>
      <pubDate>Wed, 10 Oct 2012 13:29:25 -0700</pubDate>
      <category>SQL-Server</category>
    </item>
  </channel>
</rss>