Viewing 15 posts - 11,611 through 11,625 (of 26,486 total)
GilaMonster (5/31/2012)
SQL Kiwi (5/31/2012)
Greed. Steve pays me $50 per post.I clearly need to ask Steve for a raise. About 200% would be nice.
Wait, you all are getting paid???? ...
May 31, 2012 at 10:23 am
I would go with separate stored procedures. Each one should do a single function, get or insert.
May 31, 2012 at 10:22 am
Eugene Elutin (5/31/2012)
SELECT
'12/31/2011' as CloseDate,
'0' as CostBasis,
'09/30/2010' as OpenDate,
'1' as PortfolioBaseIDOrder,
'0' as Quantity,
'0' as RealizedGainLoss
from dbo.fRealizedGainLoss(@ReportData) r
If the result of dbo.fRealizedGainLoss(@ReportData) is 5 rows, you...
May 31, 2012 at 10:18 am
Eugene Elutin (5/31/2012)
This one can be...
May 31, 2012 at 10:12 am
John Mitchell-245523 (5/31/2012)
May 31, 2012 at 9:38 am
if(@rowcount = 0)
SELECT
'12/31/2011' as CloseDate,
'0' as CostBasis,
'09/30/2010' as OpenDate,
'1' as PortfolioBaseIDOrder,
...
May 31, 2012 at 9:37 am
Tomorrow is Friday, would you display 6/1/2012 or would you still go back 8 weeks from the previous Friday?
May 31, 2012 at 9:14 am
Not being ale to look at what is in your system, not sure. One thing I would suggest, however, is to not use sysobjects and syscolumns. These are...
May 31, 2012 at 9:09 am
Greg Snidow (5/31/2012)
Lynn Pettis (5/31/2012)
Doesn't match with this from your original post:
Also, the NSF transactions are assumed to occur in the same order as the payments. For example, if customer...
May 31, 2012 at 9:06 am
Greg Snidow (5/31/2012)
Lynn Pettis (5/31/2012)
Last night while working n this I did find a problem with your solution. Based on your requirements, one of the records you return is...
May 31, 2012 at 8:44 am
Problem is data related:
SELECT 1, '2012-06-01', 50
The data above is a future date and was not anticipated when I wrote the code provided. Here is an apportunity for you...
May 31, 2012 at 8:41 am
Greg,
Last night while working n this I did find a problem with your solution. Based on your requirements, one of the records you return is incorrect. It happens...
May 31, 2012 at 7:13 am
dilipd006 (5/30/2012)
Thank you very much Lynn Pettis.... it works really fineCan u explain the CTE part..Taking 10 rows,100 rows
or may be some url
Thanks
The first part of the CTE...
May 31, 2012 at 12:08 am
Brian Brown-204626 (5/30/2012)
Thanks for all the advice. I think I have a handle on the problem now.
Be sure to let us know when you resolve the problem and how...
May 30, 2012 at 3:57 pm
Viewing 15 posts - 11,611 through 11,625 (of 26,486 total)