Viewing 15 posts - 3,871 through 3,885 (of 15,381 total)
ChrisM@Work (9/10/2014)
Heh Fingers on Fire, Sean!
Nah. I cheated and used poorsql.com. 😉
September 10, 2014 at 9:32 am
This is yet another reason, in the extremely long list, of why you should use the proper datatypes. Since you are storing datetime data as character data you don't have...
September 10, 2014 at 9:22 am
Here it is with some formatting.
SELECT lb.loanid
,lb.clientid
,lb2.beginning_loan_balance AS beginning_loan_balance
,SUM(lb.sales) AS sales
,NULL AS ar_turn
,NULL AS loan_turn
,0 AS minimum_interest
,SUM(lb.collections) AS collections
,lb1.previous_collateral_value AS beginning_collateral_balance
,MAX(lb.float_days) AS float_days
,
--using formula for the yield rate
MAX((
lb.interest_rate + ISNULL(lb.default_rate,...
September 10, 2014 at 9:13 am
Ed Wagner (9/10/2014)
whereisSQL? (9/10/2014)
Sean Lange (9/10/2014)
Ed Wagner (9/10/2014)
djj (9/10/2014)
TelephoneTelegraph
Pony Express
History
Lessons Learned
and promptly forgotten so we can repeat ourselves.
September 10, 2014 at 8:52 am
Personally I detest questions like this. This is testing our ability to be a human compiler and debug code that faced with in the real world I would toss out...
September 10, 2014 at 7:31 am
amar_kaur16 (9/10/2014)
The error is :Invalid column name Decision1
That means the column isn't in the table. Also, if you are going to use the TOP 1 solution posted by Eirikur you...
September 10, 2014 at 7:19 am
This is commonly referred to around here as "the quote bug". It has been around a long time. I don't know if it is difficult to fix or just not...
September 10, 2014 at 7:13 am
Ed Wagner (9/10/2014)
djj (9/10/2014)
TelephoneTelegraph
Pony Express
September 10, 2014 at 7:00 am
artisticcheese (9/9/2014)
Estimated execution plan before statistics was updated and...
September 9, 2014 at 3:28 pm
TBIG (9/9/2014)
When I run this script from SSMS on my database server in the...
September 9, 2014 at 3:21 pm
Lynn Pettis (9/9/2014)
Sean Lange (9/9/2014)
Koen Verbeeck (9/9/2014)
Sean Lange (9/9/2014)
Koen Verbeeck (9/9/2014)
Steve Jones - SSC Editor (9/9/2014)
September 9, 2014 at 2:58 pm
artisticcheese (9/9/2014)
September 9, 2014 at 2:45 pm
Koen Verbeeck (9/9/2014)
Sean Lange (9/9/2014)
Koen Verbeeck (9/9/2014)
Steve Jones - SSC Editor (9/9/2014)
September 9, 2014 at 1:40 pm
artisticcheese (9/9/2014)
If it would be any of those then results would eventually come up and it would...
September 9, 2014 at 1:33 pm
Koen Verbeeck (9/9/2014)
Steve Jones - SSC Editor (9/9/2014)
September 9, 2014 at 1:22 pm
Viewing 15 posts - 3,871 through 3,885 (of 15,381 total)