Viewing 10 posts - 1 through 10 (of 10 total)
I defined a temp table and got it working.
Thanks for all your help.
-NS.
May 20, 2004 at 11:06 am
I do not have any sequential value as the 'year' in the above example and hence it can't be sorted on a field to get the sum of all previous...
May 18, 2004 at 6:13 pm
I tried this and it seems to work and do exactly what i want. however, one thing I am confused is declaring a cursor would lock those rows in the...
March 20, 2004 at 12:56 am
In this case, the types are not so well defined that I can do a two step update. AS in, The total at LineType 'F' need not be just a...
March 19, 2004 at 5:02 pm
Heres the problem in further detail.
Create Table #tbl
{
RowNo INT,
Type VARCHAR(2), -- This field is to identify the type of record(Detail, SubTotal, FinalTotal)
Amount MONEY,
TotalRowNo INT
}
Example:
Insert INTO #tbl
VALUES (1,'D',10.00,5)
The...
March 18, 2004 at 3:12 pm
Thanks for your reply. I think the solution to use the temp table will work for me as i have n status values to check and i will have to...
February 25, 2004 at 11:09 am
I dont think the first option will help me. I tried doing it but didnt get the desired result.
In fact the @status can have N number of...
February 24, 2004 at 3:33 pm
Figured out. Thanks for the prompt reply.
December 30, 2003 at 4:22 pm
Could you please show me an example.
December 30, 2003 at 4:09 pm
Viewing 10 posts - 1 through 10 (of 10 total)