<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022327" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022327</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thank you</title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-stored-procedures-and-append-queries#comment-1138020</link>
    <description> &lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I did find the answer and Mark you are very close to it.  I originally did exactly what you suggested but still generated errors about names not being specified.  I was forced to give each field a name where it would usually default to Expr1 like @Month AS myMonth.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Sep 2003 02:07:00 +0000</pubDate>
 <dc:creator>artsapimp</dc:creator>
 <guid isPermaLink="false">comment 1138020 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-stored-procedures-and-append-queries#comment-1138017</link>
    <description> &lt;p&gt;You can use static values in SELECT queries.  I&#039;ve used this method in MySQL when moving data from one table to another.&lt;/p&gt;
&lt;p&gt;SELECT field1, field2, &#039;contant value&#039; FROM table1&lt;/p&gt;
&lt;p&gt;Now when it comes to stored procs, I have no experience there.  But I would assume the theory would be the same...&lt;/p&gt;
&lt;p&gt;SELECT DISTINCT TOP 100 PERCENT AgentID, Agent, AVG(Score) AS avgScore, CategoryID, @Month, @Year&lt;/p&gt;
&lt;p&gt;PS - CategoryID is also a field (not just a @Var), so you can use that.&lt;/p&gt;
&lt;p&gt;hmm... perhaps:  MONTH(RecordTime), YEAR(RecordTime)  ??&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Sep 2003 01:05:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1138017 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/sql-stored-procedures-and-append-queries#comment-1137945</link>
    <description> &lt;p&gt;are you INSERTING into a new table? or searching on two tables? i&#039;m not quite clear on that. &lt;/p&gt;
&lt;p&gt;if you&#039;re trying to sleect from two tables, have you thought about using join?&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Sep 2003 18:46:07 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1137945 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
