SELECT Company_Name, YR, Sum(Sales_Amt) AS SalesAmt, Schedule_Group,
Section, Part
FROM Sales
WHERE (YR = @Last_Year AND (MO BETWEEN '10' AND '12')) OR (YR = @This_Year
AND (MO BETWEEN '01' AND '09'))
GROUP BY Company_Name, YR, Schedule_Group, Section, Part
ORDER BY Company_Name;
----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, May 25, 2000 1:14 PM
Subject: RE: StoredProcs
> > Here is a question for people who have knowledge in Stored
> > procedures and SQL 7.0 backing.
> >
> > I am using CFSTOREDPROC and passing my variables into it
> > without a problem. My Stored Proc in SQL is using the
> > Order by clause.
> >
> > This does not work.. Any idea on another solution? I have
> > used the query analyzer and it stated Order By is not
> > support by SQL.
>
> I don't have any trouble ordering my recordsets in SPs. Can we see the SP
> code?
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.