I had an existing function that return table value, which used to calculated the algorithm, work fine for individual input. However I had the need to run for the whole table...which I supposed I can do a while loop. I was wondering if there are other way to do this.
thx...
declare @id int
set...
Hi Sqlsister,
Base on the table, I like to create a function to return a table that with the break down. I'm a bit lost as how to write this sql...
thanks
ID date ACCTN trxType Price QTY
1 12/1/2001 VCN b 2.5 100...
Hi all,
I have the following:
ID TRXDATE ACCT TRXTYPE PRICE QTY
1 12/1/2001 VCN b 2.5 100
2 12/2/2001 VCN b 3 100
3 12/3/2001 VCN b 3.5 75
4 12/3/2001 VCN b 3.2 100
5 12/6/2001 VCN s 6.5 100
6 12/7/2001 VCN b 6.9 100
7 12/15/2001 VCN s 7 50
8 12/16/2001 VCN s 8 50
9 12/16/2001 VCN s 9 150...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.