[quoted text, click to view] >> I have a parameterised stored procedure which calls another stored
procedure. The parameterised stored procedure returns varying numbers
of columns. The number of columns varies by the number of months which
the report covers. <<
You missed the entire point of SQL. It is a data retrieval langauge
which returns tables. Tables are models of entities or relationships
and by definition have a fixed, known set of columns.
[quoted text, click to view] >> I want to add a Total line to the foot of this recordset. <<
A set is made up of the same kind of things; this is a report, not a
set.
[quoted text, click to view] >> Now, bearing in mind the report is ordered by Description, and the
Products could be named anything up to 'Z', how could I do this? <<
By using a report writer to write a report. I am sure there is some
kludge you can write trying to use in T-SQL as an application
development language. But if you are going to do that, it would be
better just to go back to file systems and 3GL programming.
It is also very hard to debug your code or DDL when you don't post any.
--CELKO--
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are. Sample data is also a good idea, along with clear
specifications.
*** Sent via Developersdex
http://www.developersdex.com ***