Viewing 15 posts - 16 through 30 (of 42 total)
Hi,
Any reply is a good reply... lol
What data type, I keep getting errors on converting to int... not sure which double precision to use to be able to convert back...
May 24, 2013 at 12:40 pm
Forgot to add this too...
When I insert into the temp tables, I noticed the execution plans show that it did, sorts, and index inserts (Clustered)...
Why would it do that, when...
August 17, 2012 at 10:02 am
LOL... yes it is interesting... lol
Not sure I follow how it's RBAR, and not SET BASED??
Thanks,
John
June 11, 2012 at 3:03 pm
Hi,
Why does the previos value work on the numbers and not the VARCHAR???
I'm using the UPDATE to tell me my Previos val (which works with the INT), not joining... (also,...
June 11, 2012 at 2:54 pm
I'm really not sure how to explain any simplier than this...
row 1 VAL = A P_VAL = null
row 2 VAL = B P_VAL = A
row 2 VAL = C P_VAL...
June 11, 2012 at 1:40 pm
Hi,
Appreciate the reply...
It's for use in a calculation...
but I don't wanna focus on that...
I want the P_VAL to show me what the Prior value was...
thus...
row 1...
June 11, 2012 at 1:25 pm
Hi,
I found my answer re-reading Jeff Modem articles...
http://www.sqlservercentral.com/articles/T-SQL/68467/
Here is the code I was looking for....
UPDATE
E
SET
@MRN = E.IsCurr =
CASE
WHEN
@MRN = @P_MRN
THEN
@MRN
ELSE
@P_MRN
END
, @P_MRN = e.MRN
FROM
#GETID...
April 9, 2012 at 3:50 pm
I do...
I really would like to use that update statement I posted at first...
that column I have "Should_Be", is a what I want my out put to look like...
my question...
April 9, 2012 at 3:22 pm
Hi agian,
I modified your code a bit to get the result I needed... I didn't have to add the Identity row...
I guess to try and explain, when the value A,...
April 9, 2012 at 10:23 am
Ahhh,
I have an ID, but I wasn't using it because it's not in sequence, so I didn't think to just add an Identity into my Temp Table...
Thanks for the help!!!
John
April 9, 2012 at 10:05 am
Hi,
I inserted the data, as if it were already put in order... so the MRN is my ORDER BY...
With that, if you look at the Update Statement, I have a...
April 9, 2012 at 9:38 am
I'll give you that...
So I took the date and ran it against jan 29 2007... what anomaly am I miss that you are trying to point out...
The functions and...
November 22, 2008 at 5:15 pm
You know what else it is... if i take a months day say 31 and give it to a month with only 30 days, well it doesn't like that... so...
November 22, 2008 at 11:59 am
I don't have when the loan was originated or initiated... we are just figuring Principal Payments from Next_Payment_Date on...
I tried all the dates you all mentioned and they came out...
November 22, 2008 at 10:25 am
Well it seems to be working... would you care to give me a date that wouldn't work and I can go from there...
No offense, I come here to try and...
November 21, 2008 at 9:53 pm
Viewing 15 posts - 16 through 30 (of 42 total)