C/S problem. About Delphi and SQL Server
silas 2000-03-01 07:22:00 Could you like to help me to solve the problem of SQL Server and Delphi.
Thanks first!
In SQL Server 7.0, I made a StoreProc like below:
Select title=Convert(char(30)),title),price
from titles
where type='popular_comp'
Compute AVG(price),Sum(price)
the SQL Server returns like below:
titles price
----------------------------------------------------
but is it user friendly? 22.95
secrets of silicon valley 20.00
net etiquette (null)
avg
=====================
21.48
sum
=====================
21.48
I want to know how get the AVG(price) and SUM(price) in Delphi.
I know the StoreProcdure control how to get the select command by get the single value (through storproc1.param() and DBgrid).
But both single value and result set I could not solve it
thank again!
but I only know