General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
I want to add a runbalance calculated field in query
Environment versions
SQL Server:
SQL Server 7.0
I want to add a balance field to this query how do I achive this
select outdt as date ,packsetid, shetkariid,
sum(inqty) as inqty, sum(outqty) as outqty , ****running balance field***
from stkoffset
where packsetid = @p_packsetid and shetkariid = @p_shetkariid
group by packsetid, shetkariid, outdt
order by packsetid, shetkariid, outdt
Rajesh
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only